Parent target of unnamed frame gives NullException
Brought to you by:
russgold
Trying to use a form or a link with an _parent as
target gives a NullPointer exception. The fix seems to
be relatively simple:
- add 2 unit tests to WebFrameTest.java that
demonstrate the problem with link and forms.
- add a FrameSelector constructor with a FrameSelector
parent as parameter in FrameSelector.java.
- change newNestedFrame() in FrameHolder.java to use
that new constructor instead of the default constructor
when the relativeName is null or emtpy.
Attached are the modified files.
Unit test changes that demonstrate the problem and changes that fix it.
Logged In: YES
user_id=1150271
This was found with HttpUnit 1.6.
Logged In: YES
user_id=37920
I believe this is the same problem reported as bug #1035949,
and already fixed in CVS. Could you please try the CVS
version to see if your problem still exists?
Logged In: YES
user_id=1150271
I got the CVS version earlier this week, and it does fix the
problem detected by my test cases. Thank you. Next time I
will try my test cases against the CVS version first.