Avoid using initialialised pointer in sonar interrupt handler.