check for null editor