Skip to content

Commit

Permalink
Fix NPE in OpenSSHKnownHosts (#579)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Lagunov <vladimir.lagunov@jetbrains.com>
  • Loading branch information
vladimirlagunov and vladimirlagunov authored May 26, 2020
1 parent 11543b2 commit b1be925
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public String getLine() {
line.append(" ").append(type.toString());
line.append(" ").append(getKeyString(key));

if (!comment.isEmpty()) line.append(" ").append(comment);
if (comment != null && !comment.isEmpty()) line.append(" ").append(comment);

return line.toString();
}
Expand Down

0 comments on commit b1be925

Please sign in to comment.