Skip to content

Commit

Permalink
Fix null check for public key parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed May 14, 2024
1 parent 09e2ca5 commit 458f525
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void init(File location, PasswordFinder pwdf) {

@Override
public void init(String privateKey, String publicKey, PasswordFinder pwdf) {
if (pubKey != null) {
if (publicKey != null) {
try {
initPubKey(new StringReader(publicKey));
} catch (IOException e) {
Expand All @@ -133,7 +133,7 @@ public void init(String privateKey, String publicKey, PasswordFinder pwdf) {

@Override
public void init(Reader privateKey, Reader publicKey, PasswordFinder pwdf) {
if (pubKey != null) {
if (publicKey != null) {
try {
initPubKey(publicKey);
} catch (IOException e) {
Expand Down

0 comments on commit 458f525

Please sign in to comment.