Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Nightly Builds
-
None
-
ALL
Description
In class PropertyOwnerPointer, method setValue
The code says first
if (parent.isContainer()) ...
then it checks for parent not being null.
else if (parent != null) {
If the parent could be null the first code
would trigger a null pointer exception.
So I think:
now the parent happens to be never null
but either
1. the (parent!=null) check is unecessary
(I don't know the exact semantics of this class)
2. or more probably the
block should be put inside
the
check.
An other findbugs find.