NullPointerException com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.checkOverrideProperties(ClassBeanInfoImpl.java:205) · Issue #860 · javaee/jaxb-v2 (original) (raw)
This repository was archived by the owner on Feb 5, 2019. It is now read-only.
This repository was archived by the owner on Feb 5, 2019. It is now read-only.
Description
The issue is described in the following thread:
http://java.net/projects/jaxb/lists/users/archive/2011-09/message/0
The problem has been fixed in trunk with the following commit diff:
Index: runtime/src/com/sun/xml/bind/v2/runtime/ClassBeanInfoImpl.java
===================================================================
--- runtime/src/com/sun/xml/bind/v2/runtime/ClassBeanInfoImpl.java (revision 3729)
+++ runtime/src/com/sun/xml/bind/v2/runtime/ClassBeanInfoImpl.java (revision 3730)
@@ -202,7 +202,9 @@
private void checkOverrideProperties(Property p) {
ClassBeanInfoImpl bi = this;
while ((bi = bi.superClazz) != null) {
- for (Property superProperty : bi.properties) {
+ Property[] props = bi.properties;
+ if (props == null) break;
+ for (Property superProperty : props) {
if (superProperty == null) break;
String spName = superProperty.getFieldName();
if ((spName != null) && (spName.equals(p.getFieldName()))) {
It was committed on July 19, 2011 by snajper
It is fixed in jaxb-ri 2.2.5-SNAPSHOT. The fix needs to be in GF 3.1.2.
Affected Versions
[2.2.4u1]