This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes GWT and the fly likes RequestFactory throws an exception when on null relationships Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "RequestFactory throws an exception when on null relationships" Watch "RequestFactory throws an exception when on null relationships" New topic
Author

RequestFactory throws an exception when on null relationships

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
When I return an entity from a method with a null EntityProxy relationship (ie, Book.getAuthor() when Author is null) an exception is thrown. Is it possible to return objects with null values in them?

Stacktrace here:
http://pastebin.com/y80E2GMT


http://www.goodercode.com
SCJP 1.4
 
Consider Paul's rocket mass heater.
 
subject: RequestFactory throws an exception when on null relationships
 
Similar Threads
is it wise to return a null from a method ?
Getting input with instructor code isn't working as I would expect...
How to find a file (any file) in Java
methods that causes nullpointer exception
Can getMessage() method of Exception class return Null?