mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Fixing NPE found when not having required host and port properties.
This commit is contained in:
@@ -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