commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glenn Goldenberg" <ggoldenb...@Initiatesystems.com>
Subject RE: [betwixt] NullPointerException in 0.7RC1
Date Mon, 27 Jun 2005 15:13:26 GMT
hi robert:

I updated my local version of Betwixt with the patch and rebuilt.  The test works fine now.

Thanks for the fix!  

glenn

-----Original Message-----
From: robert burrell donkin
[mailto:robertburrelldonkin@blueyonder.co.uk]
Sent: Sunday, June 26, 2005 9:27 AM
To: Jakarta Commons Users List
Subject: Re: [betwixt] NullPointerException in 0.7RC1


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


---------------------------------------------------------------------
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