Skip to content

Commit

Permalink
Fixed NPE in SSHLauncher
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Mar 13, 2024
1 parent 487af1d commit 3739cc1
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 3739cc1

Please sign in to comment.