commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [betwixt] NullPointerException in 0.7RC1
Date Sun, 26 Jun 2005 14:26:55 GMT
hi glenn

thanks for reviewing the release candidate and supplying an accurate
description of the bug. it indeed has a very simple fix.

i would like to wait another day or two to see if any more issues are
reported before creating another release candidate but i'd appreciate it
if you could verify that the fix works for you. 

to do this, either checkout the RELEASE_0_7_BRANCH and build from the
latest code or apply the patch that follows.

TIA

- robert

Index: src/java/org/apache/commons/betwixt/io/AbstractBeanWriter.java
===================================================================
--- src/java/org/apache/commons/betwixt/io/AbstractBeanWriter.java
(revision 201849)
+++ src/java/org/apache/commons/betwixt/io/AbstractBeanWriter.java
(working copy)
@@ -1387,7 +1387,7 @@

                        // see if we have already have a matching
attribute descriptor
                        AttributeDescriptor[] attributeDescriptors =
descriptor.getAttributeDescriptors();
-                       length = attributeDescriptors.length;
+                       length = super.getLength();
                        for (int i=0; i<length; i++) {
                                if
(idAttributeName.equals(attributeDescriptors[i])) {
                                        matchingAttribute = true;




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message