NPE check. Checking in on behalf of Abe.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@575752 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2007-09-14 16:33:09 +00:00
parent 809cb37003
commit 44c08403ac
1 changed files with 2 additions and 2 deletions

View File

@ -3666,7 +3666,7 @@ public class PCEnhancer {
*/ */
private String toBackingFieldName(String name) { private String toBackingFieldName(String name) {
if (_meta.getAccessType() == ClassMetaData.ACCESS_PROPERTY if (_meta.getAccessType() == ClassMetaData.ACCESS_PROPERTY
&& _attrsToFields.containsKey(name)) && _attrsToFields != null && _attrsToFields.containsKey(name))
name = (String) _attrsToFields.get(name); name = (String) _attrsToFields.get(name);
return name; return name;
} }
@ -3679,7 +3679,7 @@ public class PCEnhancer {
// meta is null when doing persistence-aware enhancement // meta is null when doing persistence-aware enhancement
if (_meta != null if (_meta != null
&& _meta.getAccessType() == ClassMetaData.ACCESS_PROPERTY && _meta.getAccessType() == ClassMetaData.ACCESS_PROPERTY
&& _fieldsToAttrs.containsKey(name)) && _fieldsToAttrs != null && _fieldsToAttrs.containsKey(name))
return (String) _fieldsToAttrs.get(name); return (String) _fieldsToAttrs.get(name);
else else
return name; return name;