I'm getting a crash attempting to execute this code:
The crash message is as follows:
What should I look for to resolve this issue?
B4X:
Dim sql As String
sql = $"INSERT INTO data VALUES (?,?,?,?,?)"$
Log(sql)
' these are all strings
Log(bbo.pair)
Log(txt_BestBid.Text)
Log(txt_BestAsk.Text)
Log(txt_Spread.text)
Log(txt_LastPrice.text)
table_SubscribedPairs.sql1.ExecNonQuery2(sql, Array As String(bbo.pair,txt_BestBid.Text,txt_BestAsk.Text,txt_Spread.text,txt_LastPrice.text))
The crash message is as follows:
INSERT INTO data VALUES (?,?,?,?,?)
ltc-btc
0 / 0
0 / 0
0
0
Error occurred on line: 738 (B4XMainPage)
java.lang.NullPointerException
at anywheresoftware.b4j.objects.SQL.ExecNonQuery2(SQL.java:199)
What should I look for to resolve this issue?