1. Java Rosa
  2. javarosa
Issue #54 resolved

<value/> tags break form processing

Yaw Anokwa
created an issue

javarosa throws a npe on processing forms with <value/> for empty values. it prefers <value></value>.

{{{ java.lang.NullPointerException at org.javarosa.xform.parse.XFormParser.parseItem(XFormParser.java:899) at org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:610) at org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:150) at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:340) at org.javarosa.xform.parse.XFormParser.parseGroup(XFormParser.java:1137) at org.javarosa.xform.parse.XFormParser.access$300(XFormParser.java:77) at org.javarosa.xform.parse.XFormParser$8.handle(XFormParser.java:152) at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:340) at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:351) at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:351) at org.javarosa.xform.parse.XFormParser.getFormDef(XFormParser.java:297) at org.javarosa.xform.parse.XFormParser.getFormDef(XFormParser.java:261) at org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XFormUtils.java:63) }}}

Comments (1)

  1. Log in to comment