Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14767893
D21172.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21172.diff
View Options
diff --git a/src/applications/differential/customfield/DifferentialAsanaRepresentationField.php b/src/applications/differential/customfield/DifferentialAsanaRepresentationField.php
--- a/src/applications/differential/customfield/DifferentialAsanaRepresentationField.php
+++ b/src/applications/differential/customfield/DifferentialAsanaRepresentationField.php
@@ -44,6 +44,10 @@
$edge = head($edges[$src_phid][$edge_type]);
+ if (!$edge) {
+ return null;
+ }
+
if (!empty($edge['data']['gone'])) {
return phutil_tag(
'em',
diff --git a/src/applications/differential/parser/DifferentialChangesetParser.php b/src/applications/differential/parser/DifferentialChangesetParser.php
--- a/src/applications/differential/parser/DifferentialChangesetParser.php
+++ b/src/applications/differential/parser/DifferentialChangesetParser.php
@@ -1326,9 +1326,15 @@
$old_back = array();
$new_back = array();
foreach ($this->old as $ii => $old) {
+ if ($old === null) {
+ continue;
+ }
$old_back[$old['line']] = $old['line'];
}
foreach ($this->new as $ii => $new) {
+ if ($new === null) {
+ continue;
+ }
$new_back[$new['line']] = $new['line'];
}
diff --git a/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php b/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
--- a/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
+++ b/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
@@ -593,9 +593,14 @@
$map = array();
foreach ($new as $offset => $new_line) {
+ if ($new_line === null) {
+ continue;
+ }
+
if ($new_line['line'] === null) {
continue;
}
+
$map[$new_line['line']] = $offset;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 6:25 PM (21 h, 1 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7042459
Default Alt Text
D21172.diff (1 KB)
Attached To
Mode
D21172: Fix some PHP 7.4 array index access issues
Attached
Detach File
Event Timeline
Log In to Comment