Skip to content

Commit

Permalink
null Pointer fix (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
satyamchaurasiapersistent authored Sep 15, 2023
1 parent 27666fd commit a4277f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/checkmarx/flow/CxFlowRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ private void scanCommon(ScanRequest request, String type, String path) throws Ex
BugTracker bugTracker = request.getBugTracker();
String customBean = bugTracker.getCustomBean();
if (path != null) {
if(customBean.equalsIgnoreCase("pdf")){
if(customBean!=null && customBean.equalsIgnoreCase("pdf")){
scanResults = runOnActiveScanners(scanner -> scanner.scanCliToGeneratePDF(request, type, new File(path)));
}else{
scanResults = runOnActiveScanners(scanner -> scanner.scanCli(request, type, new File(path)));
Expand Down

0 comments on commit a4277f7

Please sign in to comment.