Page MenuHomePhorge

D25728.1729327720.diff
No OneTemporary

D25728.1729327720.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, Oct 19, 08:48 (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
932921
Default Alt Text
D25728.1729327720.diff (941 B)

Event Timeline