diff --git a/src/vs/workbench/api/node/extHostTypes.ts b/src/vs/workbench/api/node/extHostTypes.ts index d4afa18100a181712d436f0000495eb703015a5f..add62e873992a84b74135ef565647f5256c68571 100644 --- a/src/vs/workbench/api/node/extHostTypes.ts +++ b/src/vs/workbench/api/node/extHostTypes.ts @@ -1603,6 +1603,9 @@ export class SourceBreakpoint extends Breakpoint { constructor(location: Location, enabled?: boolean, condition?: string, hitCondition?: string) { super(enabled, condition, hitCondition); + if (location === null) { + throw illegalArgument('location'); + } this.location = location; } } @@ -1612,6 +1615,9 @@ export class FunctionBreakpoint extends Breakpoint { constructor(functionName: string, enabled?: boolean, condition?: string, hitCondition?: string) { super(enabled, condition, hitCondition); + if (!functionName) { + throw illegalArgument('functionName'); + } this.functionName = functionName; } }