diff --git a/lib/mac/WindowCocoa.mm b/lib/mac/WindowCocoa.mm index 5174565..94c7d3f 100644 --- a/lib/mac/WindowCocoa.mm +++ b/lib/mac/WindowCocoa.mm @@ -882,7 +882,8 @@ static boo::ESpecialKey translateKeycode(short code) { boo::SWindowRect rect = {{int(self.frame.origin.x), int(self.frame.origin.y)}, {int(self.frame.size.width), int(self.frame.size.height)}}; - resp->booContext->m_callback->resized(rect); + if (resp->booContext->m_callback) + resp->booContext->m_callback->resized(rect); [super reshape]; }