Skip to content

Commit 7d7d891

Browse files
Fix: null response causes crashes
1 parent 0855f65 commit 7d7d891

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Ssr/HttpGateway.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ public function dispatch(array $page): ?Response
2727
} catch (Exception $e) {
2828
return null;
2929
}
30+
31+
if (is_null($response)) {
32+
return null;
33+
}
3034

3135
return new Response(
3236
implode("\n", $response['head']),

0 commit comments

Comments
 (0)