Bug 36496 - AppKit.NSTableView.MakeView override throws NullArgumentException (and shouldn't)
Summary: AppKit.NSTableView.MakeView override throws NullArgumentException (and should...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 2.4.0 (C6)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2015-12-02 22:44 UTC by Colby Williams
Modified: 2016-02-02 22:58 UTC (History)
2 users (show)

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


Attachments
Repro Project - Xamarin.Mac (350.97 KB, application/zip)
2015-12-02 22:44 UTC, Colby Williams
Details


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 Colby Williams 2015-12-02 22:44:01 UTC
Created attachment 14087 [details]
Repro Project - Xamarin.Mac

Steps to reproduce: Run attached sample project

```
public override NSView MakeView (string identifier, NSObject owner)
{
    // if owner == null (and it is) throws NullArgumentException
    return base.MakeView(identifier, owner);
}
```
Comment 1 Chris Hamons 2016-02-02 22:50:33 UTC
Love it. The header itself says:

This method may also return a reused view with the same 'identifier' that was no longer available on screen. 'identifier' can not be nil.

But it is in this case....
Comment 2 Chris Hamons 2016-02-02 22:58:09 UTC
Fixed in master / 89435f6bedc16f8a76a59223fd4e7cf6db87413e