Fix for issue #1796.  I am not sure that the behavior is what we want.   The original problem is that the XML parser  throws a NULL pointer exception if there is a non-blank body to an XML element and there is no stack element left (we are at an inner most definition of a class.) I modified the characters() method so that a body filled with whitepace is OK, but a body with some text in it will throw a (specific) exception.

The problem occurs in the module XML file under the following condition:

<servelet> </servelet>    <!-- OK -->
<servelet> stuff </servelet> <!-- throws a SAXException pointing out that the " stuff " is unexpected -->

(I ran into this when editing my module.xml file with the eclipse built-in XML editor.)

Patch by: zundel
Review by: me


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1509 8db76d5a-ed1c-0410-87a9-c151d255dfc7
1 file changed