Wednesday, October 27, 2010

NullPointerException in Command

hi

I have a weird situation, which I'll try to explain.


mMyClass.setMyListener(new Command()
{
public void execute()
{
RootPanel mainPanel = RootPanel.get(ID);
mainPanel.add(mMyClass);

}

});


when execute() is call from MyClass, I am getting
NullPointerException. I started using GWT logging and discovered that
mainPanel.add(mMyClass); mMyClass is null at this point.:/ Something
impossible..

I don't know, if I provided enough information or not, but maybe you
will have some guesses.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment