1. Java Rosa
  2. javarosa
Issue #31 new

core crashes on select with no items

Yaw Anokwa
created an issue

attached form crashes jr core with nullpointer exception at {{{ java.lang.NullPointerException at org.javarosa.core.model.QuestionDef.localizeSelectMap(QuestionDef.java:259) at org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:468) at org.javarosa.xform.parse.XFormParser$6.handle(XFormParser.java:120) at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:287) at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:296) at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:296) at org.javarosa.xform.parse.XFormParser.getFormDef(XFormParser.java:264) at org.javarosa.xform.parse.XFormParser.getFormDef(XFormParser.java:225) at org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XFormUtils.java:50) }}}

the problem is that one of the selects has a label but no items {{{ <select1 ref="in14"> <label ref="jr:itext('in14')"/> </select1> }}}

the core should throw a more useful error.

Comments (2)

  1. Log in to comment