Bugs item #1194792, was opened at 2005-05-04 00:18
Message generated for change (Comment added) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1194792&group_id=61302
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: HttpUnit plugin
>Group: Release 1.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Avram Cherry (alannon)
Assigned to: Nobody/Anonymous (nobody)
Summary: SameLinkPredicate needs a null check
Initial Comment:
SameLinkPredicate seems to assume that all links have the same
attributes, and thus, when the 'given' attributes doesn't contain an
attribute that the 'found' attribute contains,
getNamedItem(attributeName) will return null.
givenAttribute.getValue() then produces a NullPointerException.
the following snippet fixes this problem:
if (givenAttribute == null) {
return false;
}
I'm rather surprised this hasn't been caught earlier.
----------------------------------------------------------------------
>Comment By: Julien HENRY (henryju)
Date: 2006-06-22 13:53
Message:
Logged In: YES
user_id=1235926
Fixed in SVN.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1194792&group_id=61302
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development