mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-10-29 11:47:01 +00:00
org.jivesoftware.resource.Default.getBoolean(): The replace(" ","") replaced with trim()
This was the intention. Also avoid NPE
This commit is contained in:
parent
629353c6e2
commit
0d4987dc9b
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user