Skip to content

Commit 64c232d

Browse files
jderuiteric0ns
authored andcommitted
Check whether connectionEnds is not null in setDefaultTimeout (#351)
1 parent 4ac61a2 commit 64c232d

File tree

1 file changed

+5
-2
lines changed
  • TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/config

1 file changed

+5
-2
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/config/Config.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,8 +1742,11 @@ public Integer getDefaultTimeout() {
17421742
*/
17431743
public void setDefaultTimeout(Integer timeout) {
17441744
defaultTimeout = timeout;
1745-
for (ConnectionEnd conEnd : connectionEnds) {
1746-
conEnd.setDefaultTimeout(defaultTimeout);
1745+
1746+
if(connectionEnds != null) {
1747+
for (ConnectionEnd conEnd : connectionEnds) {
1748+
conEnd.setDefaultTimeout(defaultTimeout);
1749+
}
17471750
}
17481751
}
17491752

0 commit comments

Comments
 (0)