fixed file read error discovered while trying to use old style authentication

This commit is contained in:
James Muehlner
2011-12-20 11:00:06 -08:00
parent 5da93b15c0
commit b6b3f62584
2 changed files with 5 additions and 2 deletions

View File

@@ -49,7 +49,11 @@ public abstract class FileGuacamoleProperty implements GuacamoleProperty<File> {
@Override
public File parseValue(String value) throws GuacamoleException {
// having a null value is acceptable. If value is null, no error thrown.
if(value != null)
return new File(value);
else
return null;
}
}

View File

@@ -108,7 +108,6 @@ public class GuacamoleProperties {
* guacamole.properties.
*/
public static <Type> Type getProperty(GuacamoleProperty<Type> property) throws GuacamoleException {
if (exception != null)
throw exception;