You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/06/12 16:35:38 UTC

DO NOT REPLY [Bug 20708] New: - NPE with using setWriteEmptyElements(false);

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20708>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20708

NPE with using setWriteEmptyElements(false);

           Summary: NPE with using setWriteEmptyElements(false);
           Product: Commons
           Version: Nightly Builds
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Betwixt
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: bhandy@users.sf.net


I'm using the source from the CVS repository as of 5:00pm -0500 on June 4th.

This happens with some beans, but not others.  I've included a test that uses
both bean types.

java.lang.NullPointerException
        at org.apache.commons.betwixt.digester.XMLIntrospectorHelper.isLoopType
(XMLIntrospectorHelper.java:575)
        at org.apache.commons.betwixt.io.AbstractBeanWriter.isEmptyElement
(AbstractBeanWriter.java:856)
        at org.apache.commons.betwixt.io.AbstractBeanWriter.ignoreElement(
AbstractBeanWriter.java:814)
        at org.apache.commons.betwixt.io.AbstractBeanWriter.writeElement(
AbstractBeanWriter.java:536)
        at org.apache.commons.betwixt.io.AbstractBeanWriter.writeBean
(AbstractBeanWriter.java:282)
        at org.apache.commons.betwixt.io.AbstractBeanWriter.write
(AbstractBeanWriter.java:193)
        at org.apache.commons.betwixt.io.AbstractBeanWriter.write
(AbstractBeanWriter.java:164)
        at org.apache.commons.betwixt.io.BeanWriter.write(BeanWriter.java:231)
        at BetwixtTest.main(BetwixtTest.java:44)
Exception in thread "main"

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org