< prev index next >

src/share/vm/ci/ciInstanceKlass.cpp

Print this page

        

@@ -451,12 +451,16 @@
       fields = compute_nonstatic_fields_impl(super_fields);
     });
 
   if (fields == NULL) {
     // This can happen if this class (java.lang.Class) has invisible fields.
+    if (super_fields != NULL) {
     _nonstatic_fields = super_fields;
     return super_fields->length();
+    } else {
+      return 0;
+    }
   }
 
   int flen = fields->length();
 
   // Now sort them by offset, ascending.
< prev index next >