[OpenVPMS Developers] [JIRA] Created: (ARCH-27) ReminderType throws NullPointerException for no "units"
Key: ARCH-27 URL: https://openvpms.atlassian.net/browse/ARCH-27 Project: Archetypes Issue Type: Bug Affects Versions: 1.4 Reporter: Tim Anderson Assignee: Tim Anderson Priority: Minor Fix For: 1.5
If an entityRelationship.reminderTypeTemplate has no units speciifed, the following exception is thrown during invoicing:
{noformat} Caused by: java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Unknown Source) at org.openvpms.archetype.rules.util.DateUnits.valueOf(DateUnits.java:28) at org.openvpms.archetype.rules.patient.reminder.ReminderType$Template.(ReminderType.java:295) at org.openvpms.archetype.rules.patient.reminder.ReminderType.(ReminderType.java:103) at org.openvpms.archetype.rules.patient.reminder.ReminderRules.getReminderType(ReminderRules.java:575) at org.openvpms.archetype.rules.patient.reminder.ReminderRules.hasMatchingTypeOrGroup(ReminderRules.java:461) at org.openvpms.archetype.rules.patient.reminder.ReminderRules.markMatchingRemindersCompleted(ReminderRules.java:154) at org.openvpms.archetype.rules.patient.reminder.ReminderRules.markMatchingRemindersCompleted(ReminderRules.java:127) at org.openvpms.archetype.rules.finance.invoice.InvoiceItemSaveRules.save(InvoiceItemSaveRules.java:157) at org.openvpms.archetype.rules.finance.invoice.InvoiceRules.saveInvoiceItem(InvoiceRules.java:84) at Consequence_0.invoke(ANONYMOUS.java:4) at org.drools.semantics.java.JavaBlockConsequence.invoke(JavaBlockConsequence.java:130) ... 87 more {noformat}
If an entityRelationship.reminderTypeTemplate has no units, it should default to "DAYS". The template should be updated to make the "units" node mandatory
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf