Prevent a null reference exception CID 18102