mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-1252: Fix potential null dereference getting NAS IP.
This commit is contained in:
@@ -351,7 +351,7 @@ public class ConfigurationService {
|
|||||||
String nasIpStr = environment.getProperty(RadiusGuacamoleProperties.RADIUS_NAS_IP);
|
String nasIpStr = environment.getProperty(RadiusGuacamoleProperties.RADIUS_NAS_IP);
|
||||||
|
|
||||||
// If property is specified and non-empty, attempt to return converted address.
|
// If property is specified and non-empty, attempt to return converted address.
|
||||||
if (!(nasIpStr == null && nasIpStr.isEmpty()))
|
if (nasIpStr != null && !nasIpStr.isEmpty())
|
||||||
return InetAddress.getByName(nasIpStr);
|
return InetAddress.getByName(nasIpStr);
|
||||||
|
|
||||||
// By default, return the address of the server.
|
// By default, return the address of the server.
|
||||||
|
Reference in New Issue
Block a user