Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Error when saving Nexx video without a preview image:
Call to a member function bundle() on null in Drupal\nexx_integration\Plugin\media\Source\NexxVideo->getMetadata() (line 185 of .../nexx_integration/src/Plugin/media/Source/NexxVideo.php) #0 .../core/modules/media/src/Entity/Media.php(259): Drupal\nexx_integration\Plugin\media\Source\NexxVideo->getMetadata(Object(Drupal\media\Entity\Media), 'thumbnail_uri')
Comment | File | Size | Author |
---|---|---|---|
#2 | 3134222-2--nexx-video-without-preview-image-fix.patch | 802 bytes | aludescher |
Issue fork nexx_integration-3134222
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
aludescher CreditAttribution: aludescher at drunomics commentedIn NexxVideo the check
!empty($media->{$teaser_field})
is true for an Drupal\Core\Field\EntityReferenceFieldItemList.Comment #3
alexpottWe could try to add test coverage but this change does make sense.
Comment #7
daniel.bosenMerged, thank you!