serlo / athene2

Moved to https://github.com/serlo/serlo.org monorepo
https://github.com/serlo/serlo.org/tree/master/packages/public/server
Apache License 2.0
19 stars 18 forks source link

Notifications borken - Call to a member function getType() on null #892

Closed sentry-io[bot] closed 5 years ago

sentry-io[bot] commented 5 years ago

Sentry Issue: ATHENE2-20

This issue is breaking the generation of notifications

Error: Call to a member function getType() on null
  File "module/Normalizer/src/Normalizer/Adapter/EntityRevisionAdapter.php", line 101, in getType
    return $this->getObject()->getRepository()->getType()->getName();
  File "module/Normalizer/src/Normalizer/Adapter/AbstractAdapter.php", line 60, in normalize
    'type'        => $this->getType(),
  File "module/Normalizer/src/Normalizer/Normalizer.php", line 86, in normalize
    $normalized = $adapter->normalize($object);
  File "module/Normalizer/src/Normalizer/View/Helper/Normalize.php", line 275, in normalize
    return $this->getNormalizer()->normalize($object);
  File "module/Normalizer/src/Normalizer/View/Helper/Normalize.php", line 265, in toUrl
    $normalized = $this->normalize($object);
...
(36 additional frame(s) were not displayed)