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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
