- checking for null pointer