diff --git a/src/osx/core/bmpbndl.mm b/src/osx/core/bmpbndl.mm index d41db453c6..7fdb89a78a 100644 --- a/src/osx/core/bmpbndl.mm +++ b/src/osx/core/bmpbndl.mm @@ -171,6 +171,9 @@ wxBitmapBundle wxBitmapBundle::FromResources(const wxString& name) WXImage wxOSXGetImageFromBundle(const wxBitmapBundle& bundle) { + if (!bundle.IsOk()) + return NULL; + WXImage image = bundle.GetImpl()->OSXGetImage(); if (image == 0)