Skip to content

Commit

Permalink
Addressing the rescan known issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalhcl-5960 committed Oct 1, 2024
1 parent 24897cf commit 4306df9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/com/hcl/appscan/sdk/scanners/sast/SASTScan.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,16 @@ protected void analyzeIR() throws IOException, ScannerException {
setScanId(params.get(CoreConstants.SCAN_ID));
params.put(CoreConstants.FILE_ID, fileId);
submitRescan();
if(getExecutionId() == null) {
throw new ScannerException(Messages.getMessage(ERROR_SUBMITTING_IRX));
}
} else {
params.put(FILE_ID, fileId);
submitScan();
if(getScanId() == null) {
throw new ScannerException(Messages.getMessage(ERROR_SUBMITTING_IRX));
}
}
if(getScanId() == null)
throw new ScannerException(Messages.getMessage(ERROR_SUBMITTING_IRX));
}

protected void submitScan() {
Expand Down

0 comments on commit 4306df9

Please sign in to comment.