Can someone see a problem with this code?
I get an exception error thrown when trying to create the csv file
java.lang.NullPointerException
I get an exception error thrown when trying to create the csv file
java.lang.NullPointerException
B4X:
Cursor1=SQL.ExecQuery("Select * From Customers")
For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
cols = Array As String(Cursor1.GetString2(0),Cursor1.GetString2(1),Cursor1.GetString2(2),Cursor1.GetString2(3),Cursor1.GetString2(4))
list1.Add(cols)
Next
su.SaveCSV(File.DirRootExternal, "customers.csv", ",", list1)
Cursor1.Close