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

fix undefined variable exception #265

Merged
merged 1 commit into from
Jan 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
let targetScriptUrl: string;
if (args.source.sourceReference) {
const handle = this._sourceHandles.get(args.source.sourceReference);
if (!handle.scriptId && args.source.path) {
if ((!handle || !handle.scriptId) && args.source.path) {
// A sourcemapped script with inline sources won't have a scriptId here, but the
// source.path has been fixed.
targetScriptUrl = args.source.path;
Expand Down