From 4e6dfd564d868af5880132aa058d719c33b56a10 Mon Sep 17 00:00:00 2001 From: Artem Derevnjuk Date: Mon, 5 Oct 2020 18:29:58 +0300 Subject: [PATCH] fix(breakpoint): null pointer exception (#103) closes #96 --- src/Scan/Breakpoint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scan/Breakpoint.ts b/src/Scan/Breakpoint.ts index 11f5ed87..707452e6 100644 --- a/src/Scan/Breakpoint.ts +++ b/src/Scan/Breakpoint.ts @@ -20,6 +20,6 @@ export abstract class Breakpoint { } protected isExcepted(stats?: CountIssuesBySeverity): boolean { - return !!stats.number; + return !!stats?.number; } }