Question

Null Pointer exception on finish Assignment NullPointerException in SafeURL.put(key,value) {TaskIndex}, {undefined}

Hi ,

can some one help how to avoid below null pointer exception which is coming when do finish Assignment action

NullPointerException in SafeURL.put(key,value) {TaskIndex}, {undefined}

Attached screen shot for reference

Thanks,

Raja

***Edited by Moderator: Lochan to update platform capability tags***

Comments

Keep up to date on this post and subscribe to comments

September 12, 2019 - 11:21am

Hello, 

Do you have the full stack trace from your logs?

Pega
September 13, 2019 - 2:38am

Hi RajaSekharReddy,

From your screenshot , It looks like there is a problem while creating the SafeURL object, 

Can you please check if you are creating SafeURL object properly and passing it to FinishAssignment Action. 

You can create a safeURL object like below. 

var oSafeUrl = new SafeURL("/Here Goes action name/ ",getReqURI());

oSafeUrl.put('propertyName',this.state.name);

 oSafeUrl.put('propertyValue',newval);

 

September 13, 2019 - 3:10am

Hi karma,

Thanks for your reply we have configured OOTB Finish Assignment event on Click Action in button .

could not understand your comment could you please elaborate more.

Thanks,

Raja

Pega
September 13, 2019 - 5:13am
Response to RajaSekharReddyA1975

Hi RajaSekahar,

Can you please provide a screenshot of your action sets configuration on button click. 

September 13, 2019 - 5:20am

Hi Karma ,

Attached button action set.

Thanks,

Raja

September 17, 2019 - 3:04am
Response to RajaSekharReddyA1975

Calling a FinishAssignment in an Action Set of a button is a bit strange but why not. Can we have the full stack trace of the error from the logs.