NPE fixed in cancelAutoFocus