Should be if(NPT_FAILED(ObjectIDValidate()))