GUACAMOLE-1252: Merge correction for null pointer dereference retrieving the RADIUS NAS IP.

This commit is contained in:
Mike Jumper
2021-05-31 13:42:09 -07:00
committed by GitHub

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.