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 ab698e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-chrome-debug-core",
"displayName": "vscode-chrome-debug-core",
"version": "3.12.2",
"version": "3.12.3",
"description": "A library for building VS Code debug adapters for targets that support the Chrome Remote Debug Protocol",
"repository": {
"type": "git",
Expand Down
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 ab698e2

Please sign in to comment.