check for null handler