我有以下代码:
public class A extends Composite {
public String url;
public String result;
public A(String url, String result) {
this.url = url;
this.result = result;
}
public A someObject;
public VerticalPanel vp = new VerticalPanel();
public void init() {
someObject = new A(url, result);
someObject.setStyleName("style");
this.vp.add(someObject);
}
但是当我调用 'this.vp.add(...)' 时,它会说:
(TypeError): Cannot read property '__gwt_resolve' of null
这个怎么可能??