Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2644618
D25728.1732329700.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
941 B
Referenced Files
None
Subscribers
None
D25728.1732329700.diff
View Options
diff --git a/src/view/widget/AphrontStackTraceView.php b/src/view/widget/AphrontStackTraceView.php
--- a/src/view/widget/AphrontStackTraceView.php
+++ b/src/view/widget/AphrontStackTraceView.php
@@ -27,13 +27,15 @@
foreach ($trace as $part) {
$lib = null;
$file = idx($part, 'file');
- $relative = $file;
- foreach ($libraries as $library) {
- $root = phutil_get_library_root($library);
- if (Filesystem::isDescendant($file, $root)) {
- $lib = $library;
- $relative = Filesystem::readablePath($file, $root);
- break;
+ if ($file) {
+ $relative = $file;
+ foreach ($libraries as $library) {
+ $root = phutil_get_library_root($library);
+ if (Filesystem::isDescendant($file, $root)) {
+ $lib = $library;
+ $relative = Filesystem::readablePath($file, $root);
+ break;
+ }
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 02:41 (13 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
989473
Default Alt Text
D25728.1732329700.diff (941 B)
Attached To
Mode
D25728: Fix PHP 8.1 "file_exists(null)" exception rendering AphrontStackTraceView
Attached
Detach File
Event Timeline
Log In to Comment