Before calling a function of an object, I need to check if the object is null, to avoid throwing a NullPointerException.
NullPointerException
What is the best way to go abou
Simple one line Code to check for null :
namVar == null ? codTdoForNul() : codTdoForFul();