Skip to content

Commit

Permalink
Merge pull request #572 from rollbar/fixed_571
Browse files Browse the repository at this point in the history
Fixed #571 added null check on $filename
  • Loading branch information
danielmorell committed May 13, 2022
2 parents 786ae24 + 5003bed commit 63245d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public function makeFrames($exception, $includeContext)

private function addCodeContextToFrame(Frame $frame, $filename, $line)
{
if (!file_exists($filename)) {
if (null === $filename || !file_exists($filename)) {
return;
}

Expand Down

0 comments on commit 63245d7

Please sign in to comment.