Skip to content

Commit e99265b

Browse files
authored
BUGFIX: Fix compile time error handling exception
Fix for the following fatal error during compile time execution: PHP Fatal error: Uncaught Error: Call to a member function captureException() on null in .../neos/Data/Temporary/Production/Cache/Code/Flow_Object_Classes/Networkteam_SentryClient_ErrorHandler.php:69
1 parent cd689b2 commit e99265b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Classes/Networkteam/SentryClient/ErrorHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public function initializeObject() {
4444
* @param array $extraData Additional data passed to the Sentry sample
4545
*/
4646
public function handleException($exception, array $extraData = array()) {
47+
if (!$this->client instanceof \Raven_Client) {
48+
return;
49+
}
4750

4851
if (!$exception instanceof \Exception) {
4952
if ($exception instanceof \Throwable) {

0 commit comments

Comments
 (0)