diff --git a/src/chrome/internalSourceBreakpoint.ts b/src/chrome/internalSourceBreakpoint.ts index e35548116..130f8c5a6 100644 --- a/src/chrome/internalSourceBreakpoint.ts +++ b/src/chrome/internalSourceBreakpoint.ts @@ -30,7 +30,7 @@ export class InternalSourceBreakpoint { } function isLogpointMessage(m: Crdp.Runtime.ConsoleAPICalledEvent): boolean { - return m.stackTrace && m.stackTrace.callFrames[0].url === InternalSourceBreakpoint.LOGPOINT_URL; + return m.stackTrace && m.stackTrace.callFrames.length > 0 && m.stackTrace.callFrames[0].url === InternalSourceBreakpoint.LOGPOINT_URL; } export function stackTraceWithoutLogpointFrame(m: Crdp.Runtime.ConsoleAPICalledEvent): Crdp.Runtime.StackTrace {