mirror of https://github.com/apache/openjpa.git
Potential NPE where custom can be null, Boolean.TRUE or Boolean.FALSE. Follow the pattern in update() and deleet()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@631663 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e097063b0a
commit
177111b559
|
@ -187,7 +187,7 @@ public abstract class AbstractUpdateManager
|
||||||
Boolean custom = mapping.isCustomInsert(sm, store);
|
Boolean custom = mapping.isCustomInsert(sm, store);
|
||||||
if (!Boolean.FALSE.equals(custom))
|
if (!Boolean.FALSE.equals(custom))
|
||||||
mapping.customInsert(sm, store);
|
mapping.customInsert(sm, store);
|
||||||
if (custom.equals(Boolean.TRUE))
|
if (Boolean.TRUE.equals(custom))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ClassMapping sup = mapping.getJoinablePCSuperclassMapping();
|
ClassMapping sup = mapping.getJoinablePCSuperclassMapping();
|
||||||
|
|
Loading…
Reference in New Issue