diff --git a/src/applications/differential/parser/DifferentialHunkParser.php b/src/applications/differential/parser/DifferentialHunkParser.php index 924789ca83..52f5bb90dc 100644 --- a/src/applications/differential/parser/DifferentialHunkParser.php +++ b/src/applications/differential/parser/DifferentialHunkParser.php @@ -456,6 +456,11 @@ final class DifferentialHunkParser extends Phobject { $corpus = array(); foreach ($lines as $l) { + if ($l === null) { + $corpus[] = "\n"; + continue; + } + if ($l['type'] != '\\') { if ($l['text'] === null) { // There's no text on this side of the diff, but insert a placeholder