check for null lock name