Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. 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.