Check ObjectRef for null