function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Navneeth RajNavneeth Raj 

System.NullPointerException: Attempt to de-reference a null object. How the problem rised & how to overcome it

System.NullPointerException: Attempt to de-reference a null objectUser-added image
Arunkumar RArunkumar R
Hi Naveenth,

Remove the line no 11 i.e: return add(); 

This will make a recursive call error. So remove that line and return either a or b variable.