+ 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.