Help! Super Dev Mode crashes with NPE on statics???
We have a project that compiles fine and runs fine using normally compile files.
When we try and run in Super Dev Mode all statics are coming up as "undefined" in the javascript?
This only happens when running SDM ?
We've tried moving the "GWT.create" portions into at "static {}" block and checked to see if they were showing up as null and they aren't at that point ..
-Mike
Class fragment:
public class Butter implements ScheduledCommand, LoginEventHandler {
private final static ButterClientFactoryImpl factory = GWT.create(ButterClientFactoryImpl.class);
private final static ButterPageLayout layout = GWT.create(ButterPageLayout.class);
private final static Api api = new Api();
function which is triggering the undefined error:
public static EventBus getEventBus(){ return factory.getEventBus(); }
No comments:
Post a Comment