Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
During an ECN workflow i have an expression robot to set some wf variables. this is my code snippet
wt.change2.WTChangeOrder2 ecn = (wt.change2.WTChangeOrder2)primaryBusinessObject;
number=ecn.getNumber();
try {
description = ecn.getDescription();
} catch (NullPointerException e) {
description = ";
}
if the description of the ECN is not populated it throws an NullPointerException which i thought I was catching.
Any thoughts?
Thanks for all the replies. The ECN is not what will be null, as it's the PBO for the workflow. It's the description of the ECN which is not required may be null.
Once I disabled the product lifecycle/workflow and the org lifecycle/wf was getting executed, everything behaved as expected.