Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Fix #167
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Feb 3, 2017
1 parent 77310bd commit f435718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {

private displayNameForSourceReference(sourceReference: number): string {
const handle = this._sourceHandles.get(sourceReference);
return this.displayNameForScriptId(handle.scriptId);
return (handle && this.displayNameForScriptId(handle.scriptId)) || sourceReference + '';
}

private displayNameForScriptId(scriptId: number|string): string {
Expand Down

0 comments on commit f435718

Please sign in to comment.