Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. 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.
