mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-26 07:15:48 +02:00
Fix missing null exception checks for roaming pokes.
This commit is contained in:
parent
8b938cbf90
commit
8f1843a042
@ -251,8 +251,11 @@
|
|||||||
|
|
||||||
If TempPoke.Count > 0 And RoamingPokeName.Count > 0 Then
|
If TempPoke.Count > 0 And RoamingPokeName.Count > 0 Then
|
||||||
For Each Pokes As String In RoamingPokeName
|
For Each Pokes As String In RoamingPokeName
|
||||||
Dim MapObject As Roaming = (From p As Roaming In TempPoke Where p.Name = Pokes Order By p.Distance Ascending).ElementAt(TempPoke(0).getSkipIndex)
|
Dim MapObject As List(Of Roaming) = (From p As Roaming In TempPoke Where p.Name = Pokes Order By p.Distance Ascending).ToList()
|
||||||
RoamingPoke.Add(MapObject)
|
|
||||||
|
If MapObject IsNot Nothing AndAlso Not MapObject.Count = 0 Then
|
||||||
|
RoamingPoke.Add(MapObject.ElementAt(MapObject(0).getSkipIndex))
|
||||||
|
End If
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user