Commit dbf8c24
Avoid passing nil path to File.basename
Some frames may not aways have `path` value.
```
irb((run)@bin/rails:in `require' (not under control)):003:0> frame.location
=> "bin/rails:in `require'"
irb((run)@bin/rails:in `require' (not under control)):004:0> frame.path
=> nil
```
And when that happens, `File.basename(nil)` would cause exception and crash the debugger.1 parent 91985af commit dbf8c24
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| 613 | + | |
| 614 | + | |
613 | 615 | | |
614 | 616 | | |
615 | 617 | | |
| |||
620 | 622 | | |
621 | 623 | | |
622 | 624 | | |
623 | | - | |
| 625 | + | |
624 | 626 | | |
625 | 627 | | |
626 | 628 | | |
| |||
0 commit comments