From 0439f0043e32367493bfc55adc04ab6d45056d24 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 20 Dec 2011 21:42:26 -0800 Subject: [PATCH] If AuthenticationProvider property not provided, parseValue() should return null. --- .../net/basic/properties/AuthenticationProviderProperty.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/properties/AuthenticationProviderProperty.java b/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/properties/AuthenticationProviderProperty.java index cb1eb03a7..2a56c2ff0 100644 --- a/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/properties/AuthenticationProviderProperty.java +++ b/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/properties/AuthenticationProviderProperty.java @@ -35,6 +35,10 @@ public abstract class AuthenticationProviderProperty implements GuacamolePropert @Override public AuthenticationProvider parseValue(String authProviderClassName) throws GuacamoleException { + // If no property provided, return null. + if (authProviderClassName == null) + return null; + // Get auth provider instance try {