DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26734>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26734 NullPointerException in EqualsBuilder.append(Object[], Object[]) Summary: NullPointerException in EqualsBuilder.append(Object[], Object[]) Product: Commons Version: 2.0 Final Platform: Other OS/Version: Windows NT/2K Status: NEW Severity: Blocker Priority: Other Component: Lang AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I get a NullPointerException when calling EqualsBuilder.append(Object[], Object []). I narrowed the code down to this section: for (int i = 0; i < lhs.length && isEquals; ++i) { Class lhsClass = lhs[i].getClass(); if (!lhsClass.isInstance(rhs[i])) { isEquals = false; //If the types don't match, not equal break; } append(lhs[i], rhs[i]); } I don't think a lot of this code is necessary. I think it will work like this: for (int i = 0; i < lhs.length && isEquals; ++i) { append(lhs[i], rhs[i]); } because append(Object, Object) deals with Class issues. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
