GUACAMOLE-1252: Fix potential null dereference getting NAS IP.

This commit is contained in:
Virtually Nick
2021-05-30 22:18:31 -04:00
parent f1c81460f5
commit 063c551dcf

View File

@@ -351,7 +351,7 @@ public class ConfigurationService {
String nasIpStr = environment.getProperty(RadiusGuacamoleProperties.RADIUS_NAS_IP);
// 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);
// By default, return the address of the server.