fix segfault due to NULL m_get()
Merge pull request #201 from lorenzhs/dragging

fix segfault due to NULL m_get()