java.lang.NullPointerException : Cannot invoke method GET() on null object
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):