Skip to content

Commit

Permalink
Merge pull request #24858 from dmatej/fixNpeInSshLauncher
Browse files Browse the repository at this point in the history
Fixed NPE in SSHLauncher
  • Loading branch information
arjantijms committed Mar 13, 2024
2 parents f1288ea + 3739cc1 commit b1c13b7
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation
* Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -142,7 +142,7 @@ public void init(Node node, Logger logger) {
String userName = null;
if (sshAuth != null) {
userName = sshAuth.getUserName();
this.keyFile = new File(sshAuth.getKeyfile());
this.keyFile = sshAuth.getKeyfile() == null ? null : new File(sshAuth.getKeyfile());
this.rawPassword = sshAuth.getPassword();
this.rawKeyPassPhrase = sshAuth.getKeyPassphrase();
}
Expand Down

0 comments on commit b1c13b7

Please sign in to comment.