diff --git a/source/detail/platform_spec_posix.cpp b/source/detail/platform_spec_posix.cpp index 906aaf93..7f825395 100644 --- a/source/detail/platform_spec_posix.cpp +++ b/source/detail/platform_spec_posix.cpp @@ -836,9 +836,9 @@ namespace detail i->second->pos = pos; } auto addr = i->second; - XPoint spot; - XVaNestedList list; - if(addr->input_context) { + if(addr && addr->input_context) { + XPoint spot; + XVaNestedList list; spot.x = pos.x; spot.y = pos.y + addr->size.height; list = ::XVaCreateNestedList(0, XNSpotLocation, &spot,