Skip to content

Commit 4876ca0

Browse files
committed
BUGFIX: Prevent error when exception has no referenceCode
1 parent 477108a commit 4876ca0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/NodeRendering/Render/RenderExceptionExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function extractRenderingException($content)
4747
preg_match(self::HTML_MESSAGE_HANDLER_PATTERN, $content, $matches) ||
4848
preg_match(self::XML_COMMENT_HANDLER_PATTERN, $content, $matches)
4949
) {
50-
return new ExtractedExceptionDto($matches['message'], $matches['stackTrace'], $matches['referenceCode']);
50+
return new ExtractedExceptionDto($matches['message'], $matches['stackTrace'], $matches['referenceCode'] ?? '');
5151
}
5252
return null;
5353
}

0 commit comments

Comments
 (0)