mirror of
https://github.com/apache/openjpa.git
synced 2025-02-08 02:59:42 +00:00
OPENJPA-1700 FindBugs - was checking array and not member for null
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@956687 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cbe90d792b
commit
5e8b5afc72
@ -157,7 +157,7 @@ public class CollectionParam
|
||||
getMappingRepositoryInstance().getMapping((Class) val,
|
||||
ctx.store.getContext().getClassLoader(), true);
|
||||
pstate.disc[i] = pstate.mapping[i].getDiscriminator();
|
||||
pstate.discValue[i] = pstate.disc != null ?
|
||||
pstate.discValue[i] = pstate.disc[i] != null ?
|
||||
pstate.disc[i].getValue() : null;
|
||||
}
|
||||
} else if (ImplHelper.isManageable(val)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user