We're updating the issue view to help you get more done. 

NodeDescriptor doesn't support derived=true and null derivedValue expressions

Description

From a 1.7.1 error report:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 java.lang.NullPointerException at java.io.StringReader.<init>(StringReader.java:50) at org.apache.commons.jxpath.ri.Parser.parseExpression(Parser.java:50) at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.compileExpression(JXPathContextReferenceImpl.java:249) at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java:280) at org.openvpms.component.business.domain.im.archetype.descriptor.NodeDescriptor.getValue(NodeDescriptor.java:844) at org.openvpms.component.business.service.archetype.helper.IMObjectBean$NodePropertySet.get(IMObjectBean.java:2045) at org.openvpms.component.system.common.util.AbstractPropertySet.get(AbstractPropertySet.java:263) at org.openvpms.component.system.common.util.AbstractPropertySet.getString(AbstractPropertySet.java:158) at org.openvpms.component.system.common.util.AbstractPropertySet.getString(AbstractPropertySet.java:144) at org.openvpms.component.business.service.archetype.helper.IMObjectBean.getString(IMObjectBean.java:275) at org.openvpms.web.component.im.contact.ContactHelper$EmailPredicate.evaluate(ContactHelper.java:175) at org.apache.commons.collections.CollectionUtils.select(CollectionUtils.java:516) at org.openvpms.web.component.im.contact.ContactHelper.getContacts(ContactHelper.java:108) at org.openvpms.web.component.im.contact.ContactHelper.getEmailContacts(ContactHelper.java:70) at org.openvpms.web.component.app.ContextMailContext.getFromAddresses(ContextMailContext.java:62) at org.openvpms.web.component.mail.MailEditor.<init>(MailEditor.java:250) at org.openvpms.web.component.mail.MailDialog.<init>(MailDialog.java:182) at org.openvpms.web.component.mail.MailDialog.<init>(MailDialog.java:162) at org.openvpms.web.component.mail.MailDialog.<init>(MailDialog.java:136) at org.openvpms.web.component.mail.MailDialog.<init>(MailDialog.java:124) at org.openvpms.web.component.print.InteractivePrinter.doMail(InteractivePrinter.java:452) at org.openvpms.web.component.print.InteractivePrinter$1.onMail(InteractivePrinter.java:360) at org.openvpms.web.component.print.PrintDialog$2.onAction(PrintDialog.java:199)

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Fix versions

Affects versions

1.7.1

Priority

Minor