org.jivesoftware.resource.Default.getBoolean(): The replace(" ","") replaced with trim()

This was the intention. Also avoid NPE
This commit is contained in:
Sergey Ponomarev 2025-07-20 11:39:36 +03:00 committed by Guus der Kinderen
parent 629353c6e2
commit 0d4987dc9b

View File

@ -181,7 +181,8 @@ public class Default {
}
public static boolean getBoolean(String propertyName) {
return getString(propertyName).replace(" ","").equals("true");
String prop = getString(propertyName);
return prop != null && prop.trim().equals("true");
}
public static ImageIcon getImageIcon(String imageName) {