-
1. Re: java.lang.NullPointerException on Notification sent
rebody Sep 17, 2010 7:59 AM (in response to gonlafer)Hi Gonzalo,
Thank you for the testcase, I open an issue and attach a patch for this. when there is no assignee with notification element, there will cause an JbpmException. Please let me know what do you think about this. Thank you very much.
-
2. Re: java.lang.NullPointerException on Notification sent
gonlafer Sep 17, 2010 8:13 AM (in response to rebody)Hello,
not sure if that approach will solve the problem. In my opinion, task assignee should be removed, notification should not be sent and no Exception should be raised. Only in the case where assignee is populated (not null or empty), the notification is sent.
Thanks,
Gonzalo -
3. Re: java.lang.NullPointerException on Notification sent
rebody Sep 17, 2010 8:24 AM (in response to gonlafer)Hi Gonzalo,
Because the ${task.assignee} maybe not the only one reciepent of notification mail. Maybe someone custom his own mail-template. and make more recipients for the notification mail. So we cannot skip mail sending just when the task assignee is null.
I know my patch is not good enough, but at least it provide a more clearly message to people who want to use this feature to send notfication mail.
Maybe you could give us more information about it. Thank you very much.