Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed null reference when setting icon in icon generator with bad dimensions. #955

Merged
merged 1 commit into from
Sep 11, 2017
Merged

Conversation

StephenHodgson
Copy link
Contributor

@StephenHodgson StephenHodgson commented Sep 11, 2017

Fixed null reference when setting icon in icon generator with bad dimensions.

@StephenHodgson StephenHodgson changed the title Fixed null reference when setting icon in icon generator. Fixed null reference when setting icon in icon generator with bad dimensions. Sep 11, 2017
@StephenHodgson StephenHodgson merged commit 3d3de65 into microsoft:master Sep 11, 2017
@keveleigh
Copy link
Contributor

Huh, for my own reference, how did moving that line around fix this issue? It looks like the order of a dialog box and setting newIcon was reversed, so I can't wrap my head around what that changes haha.

@StephenHodgson
Copy link
Contributor Author

StephenHodgson commented Sep 11, 2017

If the texture was null and we set the newIcon we get null reference exceptions on in the dialogue popup.
So we show the popup, then reset the newIcon.

@keveleigh
Copy link
Contributor

@StephenHodgson Aha! I knew I was missing something obvious. Thanks!

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.

None yet

3 participants