diff --git a/analyzer-golangcilint/src/main/java/io/codety/scanner/analyzer/golangcilint/GolangcilintCodeAnalyzer.java b/analyzer-golangcilint/src/main/java/io/codety/scanner/analyzer/golangcilint/GolangcilintCodeAnalyzer.java index 2f097c2..f90737d 100644 --- a/analyzer-golangcilint/src/main/java/io/codety/scanner/analyzer/golangcilint/GolangcilintCodeAnalyzer.java +++ b/analyzer-golangcilint/src/main/java/io/codety/scanner/analyzer/golangcilint/GolangcilintCodeAnalyzer.java @@ -48,6 +48,9 @@ public List analyzeCode(AnalyzerConfigurationDetailDto ru String errorOutput = runtimeExecResult.getErrorOutput(); String successOutput = runtimeExecResult.getSuccessOutput(); + if(successOutput == null || successOutput.isEmpty()){ + return list; + } List codeAnalysisIssueDtoList = GolangcilintResultConverter.convertResult(successOutput); if(codeAnalysisIssueDtoList == null || codeAnalysisIssueDtoList.isEmpty()){