mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
fixed file read error discovered while trying to use old style authentication
This commit is contained in:
@@ -49,7 +49,11 @@ public abstract class FileGuacamoleProperty implements GuacamoleProperty<File> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File parseValue(String value) throws GuacamoleException {
|
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);
|
return new File(value);
|
||||||
|
else
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -108,7 +108,6 @@ public class GuacamoleProperties {
|
|||||||
* guacamole.properties.
|
* guacamole.properties.
|
||||||
*/
|
*/
|
||||||
public static <Type> Type getProperty(GuacamoleProperty<Type> property) throws GuacamoleException {
|
public static <Type> Type getProperty(GuacamoleProperty<Type> property) throws GuacamoleException {
|
||||||
|
|
||||||
if (exception != null)
|
if (exception != null)
|
||||||
throw exception;
|
throw exception;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user