Sub collectdata
Dim c As Int = 0
For i = 0 To getdirections.maneuvers.Size - 1
c=c+1
ListView1.AddSingleLine( getdirections.maneuvers.Get(i))
Dim thisx= getdirections.maneuvers.Get(i)
'Log ( thisx)
Next
directions .Initialize
For Each colmaneuvers As Map In getdirections.maneuvers
Dim signs As List = colmaneuvers.Get("signs")
Dim index As Int = colmaneuvers.Get("index")
xpoint(c).Index = index
Dim maneuverNotes As List = colmaneuvers.Get("maneuverNotes")
Dim direction As Int = colmaneuvers.Get("direction")
Dim narrative As String = colmaneuvers.Get("narrative")
xpoint(c).Voice = narrative
Dim iconUrl As String = colmaneuvers.Get("iconUrl")
Dim distance As Double = colmaneuvers.Get("distance")
Dim time As Int = colmaneuvers.Get("time")
Dim linkIds As List = colmaneuvers.Get("linkIds")
Dim streets As List = colmaneuvers.Get("streets")
For Each colstreets As String In streets
Next
'Dim attributes As Int = colmaneuvers.Get("attributes")
'Dim transportMode As String = colmaneuvers.Get("transportMode")
'Dim formattedTime As String = colmaneuvers.Get("formattedTime")
'Dim directionName As String = colmaneuvers.Get("directionName")
'Dim turnType As Int = colmaneuvers.Get("turnType")
Dim startPoint As Map = colmaneuvers.Get("startPoint")
Dim lng As Double = startPoint.Get("lng")
Dim lat As Double = startPoint.Get("lat")
Dim mapUrl As String = colmaneuvers.Get("mapUrl")
xpoint(c).XLatitude = lat
xpoint(c).XLongitude= lng
'This logs perfectly
Log (xpoint(c).Index )
Log (xpoint(c).XLatitude )
Log (xpoint(c).XLongitude )
Log (xpoint(c).Voice )
Next
Log("length" & xpoint.length)
Log (getdirections.maneuvers.Size)
Dim p As Int
For p = 0 To getdirections.maneuvers.Size - 1
Log("p " & p )
' This does not ( null pointer exception) but values should work, even if I use 1, 2, 3 etc I get a null pointer exception
Log (xpoint(p).Voice)
Next
End Sub