Fixing NPE found when not having required host and port properties.
This commit is contained in:
1 parent
b37a9211af
commit
83e820e7ba
1 file changed
+2
-2
+2
-2
@@ -350,8 +350,8 @@ public class ConnectionService {
|
|||||||
("Cannot connect. Connection already in use by this user.");
|
("Cannot connect. Connection already in use by this user.");
|
||||||
|
|
||||||
// Get guacd connection information
|
// Get guacd connection information
|
||||||
String host = GuacamoleProperties.getProperty(GuacamoleProperties.GUACD_HOSTNAME);
|
String host = GuacamoleProperties.getRequiredProperty(GuacamoleProperties.GUACD_HOSTNAME);
|
||||||
int port = GuacamoleProperties.getProperty(GuacamoleProperties.GUACD_PORT);
|
int port = GuacamoleProperties.getRequiredProperty(GuacamoleProperties.GUACD_PORT);
|
||||||
|
|
||||||
// Get socket
|
// Get socket
|
||||||
GuacamoleSocket socket;
|
GuacamoleSocket socket;
|
||||||
|
|||||||
Reference in new issue
Block a user