Fixed: Fix some bugs Spotbugs reports (OFBIZ-12386)

Need to check for null before return
This commit is contained in:
Jacques Le Roux
2021-11-19 10:06:35 +01:00
parent 0ba7036f14
commit 1feb709998
2 changed files with 3 additions and 4 deletions
@@ -241,9 +241,8 @@ public abstract class FlexibleStringExpander implements Serializable, IsEmpty {
private static abstract class Key {
@Override
public final boolean equals(Object o) {
// No class test here, nor null, as this class is only used
// internally
return toString().equals(o.toString());
// No class test here, nor null, as this class is only used internally
return (o == null) ? false : toString().equals(o.toString());
}
@Override