Sample exception:
java.lang NullPointerException
SystemErr R at
com.ibm.workplace.wcm.api.WCM_APICoreQueries.findSiteAreaChildrenNoRecurse(WCM_APICoreQueries.java:152)
Answer by rickett (14292) | Apr 05, 2017 at 02:04 PM
Need to :
1.Define a default library in the wcm configuration
or
2.Set a current library in the script before calling mySiteArea.getChildren() using something like this:
DocumentLibrary currDocLib = workspace.getDocumentLibrary("MyLibrary");
workspace.setCurrentDocumentLibrary(currDocLib);
How to get the approvers for the current stage in custom workflow using WCM API 1 Answer
bad class file has wrong version 49.0, should be 48.0 1 Answer
WCM API sample code how to generateURL based on locale of the request 1 Answer
Considerations using getUserPrinciple with Portal API 1 Answer
Example Portal WCM API code to find unexpired items in published status past expiry date ? 1 Answer