squash npe for disposed editor