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:
Donald Woods 2010-06-21 20:39:47 +00:00
parent cbe90d792b
commit 5e8b5afc72
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ public class CollectionParam
getMappingRepositoryInstance().getMapping((Class) val, getMappingRepositoryInstance().getMapping((Class) val,
ctx.store.getContext().getClassLoader(), true); ctx.store.getContext().getClassLoader(), true);
pstate.disc[i] = pstate.mapping[i].getDiscriminator(); 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; pstate.disc[i].getValue() : null;
} }
} else if (ImplHelper.isManageable(val)) { } else if (ImplHelper.isManageable(val)) {