Page MenuHomePhorge

D25728.1732329700.diff
No OneTemporary

D25728.1732329700.diff

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

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)

Event Timeline