check for null graphics