greeduomacro / pandorasbox3

Automatically exported from code.google.com/p/pandorasbox3
0 stars 0 forks source link

Pandora.Art exception on null #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Pandora.cs
public static TheBox.ArtViewer.ArtViewer Art

Should not throw an exception when null. Because you can't check 
if (Pandora.Art == null) ...
Otherwise there will be an exception through.

There have to be a !null check everywhere the property is used and not
inside the property.

Original issue reported on code.google.com by Tarion86 on 23 Feb 2009 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by Tarion86 on 23 Feb 2009 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by Tarion86 on 23 Feb 2009 at 4:31

GoogleCodeExporter commented 9 years ago
Added property ArtLoaded to replace the if (Art != null) check with 
if(ArtLoaded)

Original comment by Tarion86 on 3 May 2009 at 12:44

GoogleCodeExporter commented 9 years ago

Original comment by Tarion86 on 20 Jul 2010 at 8:51