Fixed: Fix some bugs Spotbugs reports (OFBIZ-12386)
Need to check for null before return
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user