commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bradley M. Handy" <brad.ha...@williamstonfmc.org>
Subject [betwixt] NPE while using BeanWriter.setWriteEmptyElements() to "false"
Date Thu, 05 Jun 2003 15:35:43 GMT
I get the following NPE when setting "writeEmptyElements" property of 
"BeanWriter" to false.

Is there something I'm not doing properly.  I've got my ".betwixt" files 
defined properly, because when the property is set to "true" the test app 
runs fine.

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

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"


Brad


Mime
View raw message