You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

java.lang.NullPointerException : Cannot invoke method GET() on null object

edited Dec 22, 2024 5:51PM in Sales 4 comments

Summary:

we are trying to call a webservice in groovy and we are getting the error message as Cannot invoke method GET() on null object for below code.
if(ibRow?.SerialNumber)
{
def res = adf.webServices.Asset.GET(ibRow?.SerialNumber)
if(res.count == 0)
{ throw new oracle.jbo.ValidationException("Error Message")

}

Content (please ensure you mask any confidential information):


<html><body>Exception in expression "Branch_c" object function CustomerAssetCreation() : java.lang.NullPointerException : Cannot invoke method GET() on null object<br/>at "Branch_c" object function CustomerAssetCreation() line 23<br/><br/></body></html>

Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!