Skip to content

Conversation

Rykus0
Copy link

@Rykus0 Rykus0 commented Oct 25, 2012

Had a crash due to this.image_versions being null while trying to access this.image_versions.Keys.
Resolved by testing for null before accessing

Also added a little code that can be used for those of us who aren't using .NET 4 yet (Commented out)

Tom Pietrosanti added 4 commits October 25, 2012 11:04
Got a crash when trying to access this.image_versions.Keys while
this.image_versions was null.
I am using .NET Framework v 3.5 and was unable to use this code because
of the CopyTo statement.  Added in this workaround.

I would remove this if using .NET Framework 4 or greater.
To make this work in .NET 3.5, I had to add this code.  I've included it
in comments in case anyone else needs it.
Missed this somehow when I commented the .NET <4 changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant