From cd4df5cb270be177740bd6ab1fed60f68481002b Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 1 Dec 2015 17:06:14 -1000 Subject: [PATCH] Cocoa callback check --- lib/mac/WindowCocoa.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; }