Android Question 3.0 problem Object reference not set to an instance of an object

IDDGroup

Member
Licensed User
Longtime User
I havent touched B4A for awhile, I have been working on IOS apps.

So i'm back to fix a bug in an app, i upgrade to 3.0.

I try compiling the app and i get this error at compile time:

"Object reference not set to an instance of an object"

B4X:
' in globals.

Type Accounts (ID As String, act_name As String,act_balance As String,act_routing As String,act_account As String,act_fraction As String,act_checknbr As String,act_bankname As String,act_ownname As String,act_bankaddr As String,act_ownaddr As String,temp_check_nbr As String)


Dim AccountList As List

' later on i load the list from a database



' end global defs


' later in the code....

Sub Item_ContentFiller(ItemID As Long, LayoutName As String, LayoutPanel As Panel, Position As Int)

Dim a As Accounts
a=AccountList.Get(ItemID)
Log (a.ID)  ' "Object reference not set to an instance of an object"

Its happening in all my apps (same idea, diffent variables)

I also re-installed the prior version of B4A and no error! So it has to be something different with 3.0 vs the last version

So, was there some kindof change in 3.0 that i missed?
 
Last edited:

IDDGroup

Member
Licensed User
Longtime User
actually, i just re-installed the last couple versions.

it worked under 2.51, stopped working in 2.7 and above.

yes, its been a while.

so a change in 2.7 affected it.
 
Upvote 0
Top