openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r502369 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
Date Thu, 01 Feb 2007 21:58:21 GMT
Author: awhite
Date: Thu Feb  1 13:58:20 2007
New Revision: 502369

URL: http://svn.apache.org/viewvc?view=rev&rev=502369
Log:
Avoid NPE.


Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java?view=diff&rev=502369&r1=502368&r2=502369
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
Thu Feb  1 13:58:20 2007
@@ -255,7 +255,7 @@
      * Return the backing member supplied in {@link #backingMember}.
      */
     public Member getBackingMember() {
-        return _backingMember.getMember();
+        return (_backingMember == null) ? null : _backingMember.getMember();
     }
 
     /**



Mime
View raw message