I still need some time to think about what the problem might be.  I
have a lot of personal stuff going on that's keeping me busy at the
moment.  Plus I am working on some stuff related to the new website,
etc.

I will get back to you shortly though.

sean


On Mar 31, 2005 4:30 PM, Jon Travis <[EMAIL PROTECTED]> wrote:
> Ack!
> 
> Replace 'false' with null (hence the NPE).
> 
> The NPE occurs in HtmlTree.isNodeSelected() -- it
> does:
> 
>     return getNodeId().equals(_selectedNodeId)
> 
> getNodeId() returns false.  Up the stack, this
> is being called from DebugUtils.printComponent.
> 
> -- Jon
> 
> 
> On Mar 31, 2005, at 6:04 AM, Sean Schofield wrote:
> 
> > Jon,
> >
> > When you say getNodeId returns false, do you mean the string value
> > "false"?  That method returns a String so I'm a bit confused.  How do
> > you know the id is "false"?  Are you doing a debug statement?
> >
> > Please clarify so I can try and help you.  Also, what is the exact
> > line where the NPE occurs?  Is it the return statement in
> > isNodeExpanded?  If so (and if you have a debugger) it would be
> > helpful to know which value is null.
> >
> > Regards,
> > sean
> >
> > ps. I forwarded this to the myfaces list in case anyone else has the
> > same problem.  These messages are also archived so if someone has the
> > same question in the future they can get information by doing a quick
> > search.
> >
> >
> > On Thu, 31 Mar 2005 08:55:00 -0500, Sean Schofield
> > <[EMAIL PROTECTED]> wrote:
> >> ---------- Forwarded message ----------
> >> From: Jon Travis <[EMAIL PROTECTED]>
> >> Date: Wed, 30 Mar 2005 17:32:19 -0800
> >> Subject: getNodeId() returning null in tree2
> >> To: Sean Schofield <[EMAIL PROTECTED]>
> >>
> >> Hey Sean,
> >>
> >> Hope this isn't a braindead question, but:
> >>
> >> I'm getting a NPE in the tree2 code when there is
> >> no node that is selected & I am expanding/collapsing.
> >>
> >> Basically it comes about when HtmlTree.isNodeSelected
> >> is run -- getNodeId() returns false, then kaboom.
> >>
> >> Thoughts?
> >>
> >> -- Jon
> >>
> >
> >
> 
>

Reply via email to