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:
Albert Lee 2008-02-27 17:46:00 +00:00
parent e097063b0a
commit 177111b559
1 changed files with 1 additions and 1 deletions

View File

@ -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();