• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Why is my pointer NULL

Ranch Hand
Posts: 52
MySQL Database Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been given this exercise to do as quoted
"Create and activity with two layouts . In one , implement a List fragment. when a user clicks an Item in the list Fragment , change the fragment displayed in the second layout."

but line 35 or most likely line 36 throws a Null pointer Exception
This makes me think that the TextView cannot be referenced because it is in another layout?
This then makes me wonder how I can reference the text view called textViewChange
This also makes me think that I should include a copy of the xml

Thanks in advance
    Bookmark Topic Watch Topic
  • New Topic