Menu

#222 Parent target of unnamed frame gives NullException

closed-duplicate
None
5
2004-11-21
2004-11-01
georgesz
No

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.

Discussion

  • georgesz

    georgesz - 2004-11-01

    Unit test changes that demonstrate the problem and changes that fix it.

     
  • georgesz

    georgesz - 2004-11-01

    Logged In: YES
    user_id=1150271

    This was found with HttpUnit 1.6.

     
  • Russell Gold

    Russell Gold - 2004-11-01
    • status: open --> pending-duplicate
     
  • Russell Gold

    Russell Gold - 2004-11-01

    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?

     
  • Russell Gold

    Russell Gold - 2004-11-01
    • assigned_to: nobody --> russgold
     
  • georgesz

    georgesz - 2004-11-05

    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.

     
  • georgesz

    georgesz - 2004-11-05
    • status: pending-duplicate --> open-duplicate
     
  • Russell Gold

    Russell Gold - 2004-11-21
    • status: open-duplicate --> closed-duplicate
     

Log in to post a comment.

MongoDB Logo MongoDB