Commit d709e281 authored by J P's avatar J P Committed by Elaman Imashov
Browse files

Issue #3261462 by loze: AssertionError: Cannot load the "file" entity with NULL ID

parent dce470e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ function votingapi_reaction_entity_delete(EntityInterface $entity) {

    // Delete icon along with the vote type.
    $icon = $entity->getThirdPartySetting('votingapi_reaction', 'icon');
    if ($file = File::load($icon)) {
    if ($icon && $file = File::load($icon)) {
      $file->delete();
    }
  }