I have a main layout in which I have a search button. The result is showed in tablelayout which in another layout named layout1. Now when I click on one row, I want to show details about that row in a custom dialog box. I have layout named info in which i have a textview which i need to populate at run time. but when I try to settext the application crashes with NullPointerException

Any idea as to why this could be the case?

Thanks.

share|improve this question
can you post the code? – Candy Apr 19 at 4:20
looks like your textview is null. Make sure that it's exists in XML. – Dmitry Zaitsev Jun 15 at 11:36
We can't help you unless you post the code !! – Arfin Jun 15 at 11:51
Just paste your code so that we can see what exactly is happening... – Aamir Shah Oct 4 at 8:35
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.