Skip to content

Commit 32566d4

Browse files
committed
Fixed a nullpointer exception in the TLS-Scanner which can be caused by a failed or not executed extension probe
1 parent 4a888d2 commit 32566d4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main/java/de/rub/nds/tlsscanner/probe/HeartbleedProbe.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,14 @@ public ProbeResult executeTest() {
5454

5555
@Override
5656
public boolean shouldBeExecuted(SiteReport report) {
57-
for (ExtensionType type : report.getSupportedExtensions()) {
58-
if (type == ExtensionType.HEARTBEAT) {
59-
return true;
57+
if (report.getSupportedExtensions() != null) {
58+
for (ExtensionType type : report.getSupportedExtensions()) {
59+
if (type == ExtensionType.HEARTBEAT) {
60+
return true;
61+
}
6062
}
63+
} else {
64+
return true;
6165
}
6266
return false;
6367
}

0 commit comments

Comments
 (0)