Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! 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.
