Skip to content

Commit

Permalink
Fixed crash if image does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLGames committed Jan 27, 2018
1 parent eab4733 commit c700430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NHLGames/Utilities/ImageFetcher.vb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Namespace Utilities

If myStream IsNot Nothing Then
image = Image.FromStream(myStream)
End If

myStream.Close()
myStream.Close()
End If

Return image
End Function
Expand Down

0 comments on commit c700430

Please sign in to comment.