Documentation [1] says that StringRepresentation.getStream() returns null if the text is gone, but in fact it throws NullPointerException. getReader properly checks and doesn't throw NPE.
Also, StringRepresentation (even when text is null) claims .isTransient() is false. It appears setText(null) is called by a finalizer thread somewhere. So it's not clear what value isTransient() provides, if the StringRepresentation is asynchronously cleared later. Leigh. [1] http://www.restlet.org/documentation/2.0/jse/api/org/restlet/representation/StringRepresentation.html#getStream%28%29 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2663835

