Fixing NPE found when not having required host and port properties.

This commit is contained in:
James Muehlner
2013-08-21 14:57:29 -07:00
parent b37a9211af
commit 83e820e7ba

View File

@@ -350,8 +350,8 @@ public class ConnectionService {
("Cannot connect. Connection already in use by this user.");
// Get guacd connection information
String host = GuacamoleProperties.getProperty(GuacamoleProperties.GUACD_HOSTNAME);
int port = GuacamoleProperties.getProperty(GuacamoleProperties.GUACD_PORT);
String host = GuacamoleProperties.getRequiredProperty(GuacamoleProperties.GUACD_HOSTNAME);
int port = GuacamoleProperties.getRequiredProperty(GuacamoleProperties.GUACD_PORT);
// Get socket
GuacamoleSocket socket;