Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15282902
D21169.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
594 B
Referenced Files
None
Subscribers
None
D21169.diff
View Options
diff --git a/src/applications/differential/parser/DifferentialHunkParser.php b/src/applications/differential/parser/DifferentialHunkParser.php
--- a/src/applications/differential/parser/DifferentialHunkParser.php
+++ b/src/applications/differential/parser/DifferentialHunkParser.php
@@ -456,6 +456,11 @@
$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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 3:26 AM (1 d, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223460
Default Alt Text
D21169.diff (594 B)
Attached To
Mode
D21169: Add a missing "null" check when rebuilding old/new diff content
Attached
Detach File
Event Timeline
Log In to Comment