Bug 11531 - MonoDoc crashes when you press enter in the search bar
Summary: MonoDoc crashes when you press enter in the search bar
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Documentation ()
Version: 4.0.3
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2013-04-02 18:42 UTC by MPH
Modified: 2016-11-03 09:31 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description MPH 2013-04-02 18:42:14 UTC
The MonoDoc app has a searchbar in the top right corner.  If you press enter, it will crash.

If run via the command line, the following exception is output:

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at macdoc.MyDocument.StartSearch (MonoMac.AppKit.NSSearchField) <0x000b9>
at (wrapper dynamic-method) object.[macdoc.MyDocument.Void StartSearch(MonoMac.AppKit.NSSearchField)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSSearchField) <0x00033>
at (wrapper native-to-managed) object.[macdoc.MyDocument.Void StartSearch(MonoMac.AppKit.NSSearchField)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSSearchField) <0x000ff>
at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) <0x00003>
at MonoMac.AppKit.NSApplication.Main (string[]) <0x000a3>
at macdoc.MainClass.Main (string[]) <0x00017>

[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at macdoc.MyDocument.StartSearch (MonoMac.AppKit.NSSearchField) <0x000b9>
at (wrapper dynamic-method) object.[macdoc.MyDocument.Void StartSearch(MonoMac.AppKit.NSSearchField)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSSearchField) <0x00033>
at (wrapper native-to-managed) object.[macdoc.MyDocument.Void StartSearch(MonoMac.AppKit.NSSearchField)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSSearchField) <0x000ff>
at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) <0x00003>
at MonoMac.AppKit.NSApplication.Main (string[]) <0x000a3>
at macdoc.MainClass.Main (string[]) <0x00017>

Result has been repeatedly and consistently replicated on a machine running OS 10.8.3.
Comment 1 Colby Russell 2015-12-31 03:19:55 UTC
Unable to reproduce on Xamarin Studio 5.8.3/OS X 10.9.5.
Comment 2 Jarl Gullberg 2016-04-16 07:22:38 UTC
Not reproducible on MonoDoc 4.2.0.0 from the debian repositories.
Comment 3 Marius Ungureanu 2016-11-03 09:31:02 UTC
Works for me with XS 6.0, OS X 10.12

The bug has been fixed on 9th May 2013.

https://github.com/xamarin/macdoc/commit/e052103e7354644df330df5cc5d225b4c28d61bd