Skip to content

Commit

Permalink
fixed a null pointer exception in the report generation if tls-scanne…
Browse files Browse the repository at this point in the history
…r is uncertain if the other party speaks tls
  • Loading branch information
ic0ns committed May 3, 2018
1 parent 4b0b902 commit 8902878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/rub/nds/siwecos/tls/TlsScannerCallback.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ public void answer(ScanResult result) {
}

public ScanResult reportToScanResult(SiteReport report) {
if (!report.getServerIsAlive()) {
if (report.getServerIsAlive() != Boolean.TRUE) {
return new ScanResult("TLS", true, getHttpsResponse(report), 0, new LinkedList<TestResult>());
}
if (!report.getSupportsSslTls()) {
if (report.getSupportsSslTls() != Boolean.TRUE) {
return new ScanResult("TLS", true, getHttpsSupported(report), 0, new LinkedList<TestResult>());
}
List<TestResult> resultList = new LinkedList<>();
Expand Down

0 comments on commit 8902878

Please sign in to comment.