asn: test obj before accessing it