Bug 23586 - [Scene Kit] SCNNode.Geometry property unnecessary null check
Summary: [Scene Kit] SCNNode.Geometry property unnecessary null check
Status: VERIFIED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: Master
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2014-10-03 12:50 UTC by Oleg Demchenko
Modified: 2014-10-13 17:19 UTC (History)
2 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:
VERIFIED FIXED

Description Oleg Demchenko 2014-10-03 12:50:11 UTC
Can't set null value for SCNNode.Geometry property

Actual behaviour:
System.ArgumentNullException thrown

Expected behaviour:
Null value should be set without throwing exception

Xamarin.Mac
Version: 1.9.0.539 (Enterprise Edition)

Operating System
Mac OS X 10.10.0
Comment 1 Ram Chandra 2014-10-06 09:05:06 UTC
I have checked this issue and I am able to reproduce this issue.

I have checked the definition of "Geometry" property of "SCNNode " class in assembly browser and observed that If we try to set the SCNNode.Geometry to null, XS will throw the "System.NullException"  exception because there is a null check exits on set accessor of "Geometry" property.

Screencast: http://www.screencast.com/t/1zkfqaE8NS

Environment Info:

Mac OS X 10.9.5
Xamarin Studio : 5.5 (build 227)
Xamarin.Mac : 1.10.0.18 (Business Edition)
Comment 2 Chris Hamons 2014-10-13 15:16:45 UTC
Fixed in 6af15c3e20bbe422d196634ddd3900fae347966a