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')

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aludescher created an issue. See original summary.

aludescher’s picture

In NexxVideo the check !empty($media->{$teaser_field}) is true for an Drupal\Core\Field\EntityReferenceFieldItemList.

alexpott’s picture

Status: Active » Reviewed & tested by the community

We could try to add test coverage but this change does make sense.

daniel.bosen made their first commit to this issue’s fork.

  • daniel.bosen committed 654eb5c8 on 8.x-3.x
    Issue #3134222: Error when saving Nexx video without a preview image
    
daniel.bosen’s picture

Status: Reviewed & tested by the community » Fixed

Merged, thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.