GUACAMOLE-362: Avoid NullPointerException when closing input stream.
This commit is contained in:
1 parent
91e5702768
commit
32ccde08d2
1 file changed
+2
-1
+2
-1
@@ -81,7 +81,8 @@ public abstract class PrivateKeyGuacamoleProperty implements GuacamoleProperty<P
|
|||||||
throw new GuacamoleServerException("Key is not in expected PKCS8 encoding.", e);
|
throw new GuacamoleServerException("Key is not in expected PKCS8 encoding.", e);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
keyStreamIn.close();
|
if (keyStreamIn != null)
|
||||||
|
keyStreamIn.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
|
|||||||
Reference in new issue
Block a user