null ref tjek