• 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
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Why is my pointer NULL

 
Ranch Hand
Posts: 52
1
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
 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic