openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r646108 - /openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
Date Tue, 08 Apr 2008 22:32:36 GMT
Author: pcl
Date: Tue Apr  8 15:32:35 2008
New Revision: 646108

URL: http://svn.apache.org/viewvc?rev=646108&view=rev
Log:
OPENJPA-562. Checking in on behalf of Sandeep Shrivastava after running 'mvn test'

Modified:
    openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java

Modified: openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java?rev=646108&r1=646107&r2=646108&view=diff
==============================================================================
--- openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
(original)
+++ openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
Tue Apr  8 15:32:35 2008
@@ -1124,9 +1124,11 @@
                     //set "isUsedInOrderBy" to the field
                     ClassMetaData elemCls = getElement()
                         .getDeclaredTypeMetaData();
-                    FieldMetaData fmd = elemCls.getDeclaredField(decs[i]);
-                    if (fmd != null)
-                    	fmd.setUsedInOrderBy(true);                    
+                    if (elemCls != null) {
+                      FieldMetaData fmd = elemCls.getDeclaredField(decs[i]);
+                      if (fmd != null)
+                        fmd.setUsedInOrderBy(true);                      
+                    }
                 }
                 _orders = orders;
             }



Mime
View raw message