Hi, We are using editor framework for CRUD operations with mysql/Hibernate Backend. We managed to create and modify simple fields (String, other proxies entities ...) but we have a NPE while trying to edit a new proxy created by RequestContext.create(); which contains an arraylist of another entityProxy :
@ProxyFor(A.class) public interface AProxy extends EntityProxy { Long getId(); Integer getVersion(); void setB(List<BProxy> listofB); List<BProxy> getB(); } ...Here's the View @Path("b") HasDataEditor<BProxy> bEditor; @UiField CellTable<BProxy> bTable; ListDataProvider<BProxy> bTableDataProvider; public AEditorView() { bTableDataProvider = new ListDataProvider<BProxy>(); initWidget(uiBinder.createAndBindUi(this)); bEditor = HasDataEditor.of(bTable); ... ... We initialize the editor getView().getDataBinder().initialize(requestFactory, getView()); context = createRequestContext(); AProxy newEntity = context.create(AProxy.class); --> edit(newEntity, context); ... And Boom! Here's the stack : Caused by: java.lang.NullPointerException: null at com.google.gwt.editor.client.adapters.ListEditorWrapper.<init>(ListEditorWrapper.java: 43) at com.google.gwt.editor.client.adapters.ListEditor.setValue(ListEditor.java: 131) at com.google.gwt.editor.client.adapters.ListEditor.setValue(ListEditor.java: 1) at com.google.gwt.editor.client.impl.AbstractEditorDelegate.initialize(AbstractEditorDelegate.java: 260) at com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate.initialize(RequestFactoryEditorDelegate.java: 85) at c.f.c.p.client.ui.profile.edit.ProfileEditorView_RequestFactoryEditorDelegate.attachSubEditors(ProfileEditorView_RequestFactoryEditorDelegate.java: 44) at com.google.gwt.editor.client.impl.AbstractEditorDelegate.initialize(AbstractEditorDelegate.java: 264) at com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate.initialize(RequestFactoryEditorDelegate.java: 85) at com.google.gwt.requestfactory.client.impl.AbstractRequestFactoryEditorDriver.edit(AbstractRequestFactoryEditorDriver.java: 92) at c.f.c.p.client.mvp.editor.EditorPresenter.edit(EditorPresenter.java: 63) Any ideas ? We don't understand why the collections based fields of a new proxy aren't initialized with an empty Collection (ArrayList for instance). Best Regards Romain BIARD -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.