The check for that is in addAnnotation(). Basically if it gets to this method, peekView() should never be null.