Problem identified. Thanks for the help.
The activity was injected to the View after its construction while the
activity was requested by the class inicializator.
I am forced to pass the activity in the constructor of the view.
Is that a good practice?
On 24 Maig, 22:58, Alisson Prestes <
javalis...@gmail.com> wrote:
> You must find the "caused by" on the stack trace:
>
> Caused by: java.lang.NullPointerException: null
>
> at com.rourevell.booking.client.ui.ControlPanelViewImpl.<init>(ControlPanelVie wImpl.java:80)
>
> at com.rourevell.booking.client.service.impl.ClientFactoryImpl.getControlPanel View(ClientFactoryImpl.java:37)
>
> at com.rourevell.booking.client.activity.ControlPanelActivity.start(ControlPan elActivity.java:21)
> ...
>
> It seems that you tried to acess a variable without checking if it's null
> and got this error. Did you initialize the variable?
>
> Alisson
Presteswww.google.com/profiles/javalisson
>
> On Tue, May 24, 2011 at 5:36 AM, Jordi Planadecursach
> <
planad...@gmail.com>wrote:
> > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne lServer.java:
> > 281)
> > at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java:
> > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne lServer.java:
> > 281)
> > at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java:
> > 88)
> > at
> > com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
> > 52)
> > at
> > com.google.gwt.event.shared.EventBus.castFireEvent(EventBus.java:68)
> > at
> > com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
> > 57)
> > at
> > com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:
> > 136)
> > at
>
> > com.rourevell.booking.client.activity.LoginActivity.goToControlPanel(LoginA ctivity.java:
> > 29)
> > at com.rourevell.booking.client.ui.LoginViewImpl
> > $1$1.onSuccess(LoginViewImpl.java:61)
> > at com.rourevell.booking.client.ui.LoginViewImpl
> > $1$1.onSuccess(LoginViewImpl.java:1)
> > at
>
> > com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv ed(RequestCallbackAdapter.java:
> > 232)
> > at
> > com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
> > 287)
> > at
>
> ...
>
> llegiu-ne més »