Discussion

4
Replies
1038
Views
Build_For_Change Member since 2015 27 posts
Covance
Posted: 5 years ago
Last activity: 5 years 2 months ago
Closed

Error getting while using "PublicAPI tools=null"

PRPC Version: 7.1.7

1.

I have written following java code to create page just for testing purpose. If i put as 

 PublicAPI tools = null;

I am getting run time exception as "caught exception java.lang.NullPointerException" and tracer records saying 

Executable.unwind-Inactive.

Here is the code

PublicAPI tools = null;
ClipboardPage MyPage = tools.createPage("Code-Pega-List", "TestJavaPage");

If I remove the "PublicAPI tools = null;" line from code It works fine.

What could be the reason of this behaviour? initianlize the PublicAPI to null is incorrect? 

 

2. How to get the list of stack operations in commit method? Is there any method in API?

Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn