From 83e820e7ba1899e582d50b83163c4ed03947a278 Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Wed, 21 Aug 2013 14:57:29 -0700 Subject: [PATCH] Fixing NPE found when not having required host and port properties. --- .../guacamole/net/auth/mysql/service/ConnectionService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/guacamole-auth-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/service/ConnectionService.java b/extensions/guacamole-auth-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/service/ConnectionService.java index 8be28477f..7b3aec2a0 100644 --- a/extensions/guacamole-auth-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/service/ConnectionService.java +++ b/extensions/guacamole-auth-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/service/ConnectionService.java @@ -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;