Null pointer exception while invoking method while getting Asset from payload.
Hi,
I am trying to upgrade workflow from CQ 5.4 to 5.6.1 I am trying to invoke customized workflow which extends AbstractAssetWorkflowProcess.
so trying to get asset in execute method but getting null pointer exception while fetching asset using getAssetFromPayload method.
public void execute(WorkItem workItem, WorkflowSession wfSession, MetaDataMap metaData) throws WorkflowException {
Session session = wfSession.getSession();
final Asset asset = getAssetFromPayload(workItem, session);
.....
.....
}
Can any one please let me know I need to upgrade currently I am using cq-workflow-api version 5.6.2.
regards
Rajesh Karka