I am using "PlaceHistoryMapperWithFactory" as suggested
here<http://stackoverflow.com/questions/10089964/places-that-share-all-but-prefix-or-how-to-use-placehistorymapperwithfactory>.
The factory is set within my "ClientModule" (gin):
@Provides
>
> @Singleton
>
> @Inject
>
> public final PlaceHistoryMapperWithFactory<TokenizerFactory>
>> getPlaceHistoryMapper(AppPlaceHistoryMapper hm,
>
>
>> TokenizerFactory tf) {
>
> hm.setFactory(tf);
>
> return hm;
>
> }
>
>
I watched the code with debugger (Breakpoints on two lines above and on
"NullPointerException"):
1. The factory is set within "AbstractPlaceHistoryMapper<F>" and "hm" with
set factory is returned
2. AppPlaceHistoryMapperImpl throws NPEx at "return new
PrefixAndToken("ContentMenu", factory.contentMenuPlace().getToken(place));"
because factory is null
What is going wrong here?
One probably important thing: This problem is only (re)producible in hosted
mode. If app is deployed it works fine!
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/G9suVDbEZZwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.