Hi,
After migrate from gwt-2.3.0 to gwt-2.4.0, I face the following NPE when the requestFactory method returns a List containing a null value :
27 sept. 2011 10:10:39 com.google.web.bindery.requestfactory.server.RequestFactoryServlet doPost
GRAVE: Unexpected error
java.lang.NullPointerException
at com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:618)
at com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:383)
at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:483)
at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:225)
at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:127)
at com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:133)
// in myRequest
Request<List<String>> getStringsWithNull();
Request<List<String>> getStringsWithoutNull();
// in implementation
public List<String> getStringsWithNull() {
return Arrays.asList("test", null, "test");
}
public List<String> getStringsWithoutNull() {
return Arrays.asList("test", "test");
}
Calling getStringsWithoutNull() works as expected but getStringsWithoutNull() throws the NPE.
Is there a explication for that or is it a bug ?
Alexandre.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment