null pointer on dragging while editing