Skip to content
Snippets Groups Projects
Commit 23dfd68e authored by Gautam Kumar's avatar Gautam Kumar Committed by Elaman Imashov
Browse files

Issue #3443015: Call to a member function getFileUri() on null

parent 12c3ecf7
Branches 8.x-1.x
No related tags found
1 merge request!5Issue #3443015: Call to a member function getFileUri() on null
Pipeline #163543 passed
......@@ -353,7 +353,7 @@ class VotingApiReactionManager implements ContainerInjectionInterface {
$url = $path . 'reaction_noicon.svg';
// User defined icon.
$icon = $entity->getThirdPartySetting('votingapi_reaction', 'icon', '');
if ($file = $fileStorage->load($icon)) {
if ($icon && $file = $fileStorage->load($icon)) {
/** @var \Drupal\file\FileInterface $file */
$url = $file->getFileUri();
$default = FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment