I think you mean an assertion that pointermove_event != null, which also necessitates this line before L36: 
pointermove_event=event;