• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Android BindView elements return as null object references

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am implementing a project which requires visualizing data with a recycler view. I am having an issue with the charactersFragment (which queries character data from StarWars api) and presents them on the fragment with the use of an adapter:

The api responses with onCharactersLoadedSuccess() :

And then i am setting the recycleradapter to show the data:

All the above code is handled on charactersFragment.

For some reason i am getting both viwes (progressBar and Recycler) as not initialized (null references). What is the issue? How can i fix this?

android android-recyclerview null
Saloon Keeper
Posts: 6522
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems view binding does not work for some reason. ButterKnife is obsolete these days; consider using Android's own view binding instead.
Being a smart alec beats the alternative. This tiny ad knows what I'm talking about:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic