Skip to content

Commit

Permalink
#121 B2S 2.1.2 Throws System NullReferenceException
Browse files Browse the repository at this point in the history
Check for possible NullReference
  • Loading branch information
JockeJarre committed Nov 6, 2024
1 parent 4128552 commit 987cb07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions b2sbackglassserver/b2sbackglassserver/Forms/formBackglass.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1203,9 +1203,8 @@ Public Class formBackglass
Dim currentvalue As Integer = CInt(gistringsData.Substring(gistringid, 1))
If gistrings(gistringid) <> currentvalue Then
If Not B2SData.UsedAnimationGIStringIDs.ContainsKey(gistringid) AndAlso Not B2SData.UsedRandomAnimationGIStringIDs.ContainsKey(gistringid) Then gistrings(gistringid) = currentvalue
If B2SData.UsedRomGIStringIDs.ContainsKey(gistringid) Then
If B2SData.UsedRomGIStringIDs.ContainsKey(gistringid) AndAlso B2SData.UsedRomGIStringIDs(gistringid) IsNot Nothing Then
For Each picbox As B2SPictureBox In B2SData.UsedRomGIStringIDs(gistringid)
'If picbox IsNot Nothing Then
If picbox IsNot Nothing AndAlso (Not B2SData.UseIlluminationLocks OrElse String.IsNullOrEmpty(picbox.GroupName) OrElse Not B2SData.IlluminationLocks.ContainsKey(picbox.GroupName)) Then
Dim visible As Boolean = (currentvalue > 4)
If picbox.RomInverted Then visible = Not visible
Expand Down

0 comments on commit 987cb07

Please sign in to comment.