• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why is my pointer NULL

 
Stephen Black
Ranch Hand
Posts: 52
1
Chrome MySQL Database
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic