• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Android BindView elements return as null object references

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7597
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think view building is not working properly
reply
    Bookmark Topic Watch Topic
  • New Topic