GUACAMOLE-362: Avoid NullPointerException when closing input stream.

This commit is contained in:
Nick Couchman
2017-10-28 14:19:37 -04:00
parent 91e5702768
commit 32ccde08d2

View File

@@ -81,7 +81,8 @@ public abstract class PrivateKeyGuacamoleProperty implements GuacamoleProperty<P
throw new GuacamoleServerException("Key is not in expected PKCS8 encoding.", e);
}
finally {
keyStreamIn.close();
if (keyStreamIn != null)
keyStreamIn.close();
}
}
catch (IOException e) {