GNOME Bugzilla – Bug 695278
Avoid passing a NULL title to setTitle
Last modified: 2013-03-06 11:41:36 UTC
In gdk_window_set_decorations() we should avoid passing a NULL title NSString to setTitle, or the program will crash badly: *** Assertion failure in -[GdkQuartzWindow setTitle:], /SourceCache/AppKit/AppKit-1138.51/AppKit.subproj/NSWindow.m:2538 An uncaught exception was raised Invalid parameter not satisfying: aString != nil ( 0 CoreFoundation 0x901d0a67 __raiseError + 231 1 libobjc.A.dylib 0x9c4e0149 objc_exception_throw + 155 2 CoreFoundation 0x90138289 +[NSException raise:format:arguments:] + 137 3 Foundation 0x9ccb4233 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116 4 AppKit 0x919a6ee0 -[NSWindow setTitle:] + 144 5 libgdk-quartz-2.0.0.dylib 0x05bed39b gdk_window_set_decorations + 1003 6 libgdk-quartz-2.0.0.dylib 0x05bedfdc gdk_window_fullscreen + 284 7 libgtk-quartz-2.0.0.dylib 0x0594508e gtk_window_fullscreen + 254 ...
Created attachment 238188 [details] [review] Patch from the original reporter
Comment on attachment 238188 [details] [review] Patch from the original reporter Looks fine to me -- please commit.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment on attachment 238188 [details] [review] Patch from the original reporter Pushed to gtk-2-24, gtk-3-6 and git master