Why is one of my ListViews uninitialized?

jkurant

Member
Licensed User
Longtime User
I have an Activity with a tab host with four tabs. I have a ListView on each of three of the tab pages. Well, I am adding the third one now. When I run my app, I am getting null pointer exceptions because one of the ListViews, the newly added one, if not initialized. I can't see anything different about this ListView from the other ones.

I have attached the code and a screenshot.

Thank you!
 

Attachments

  • KurantReminders.zip
    11.3 KB · Views: 185

jkurant

Member
Licensed User
Longtime User
i ran it in the debugger again and it is actually not the listview i added recently that is failing to initialize. it has been working for a while now and then suddenly isn't getting initialized.
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
You have 2 different names, in the designer you have a ListView named "listNetworksVisible" but you are initializing one named "listNetworksVisible", changing the name solves the problem.
 
Upvote 0
Top