Two Laptop Bag*
The moose likes Android and the fly likes getting Nulpointer in xml file parsing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "getting Nulpointer in xml file parsing" Watch "getting Nulpointer in xml file parsing" New topic
Author

getting Nulpointer in xml file parsing

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1073
this is my main activity



i am getting nullpointer exception at below line.



below is the xml my file



i am getting whole xml file in below line

Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4167
    
  21

sam liyanage wrote:i am getting nullpointer exception at below line.

Past the actual stack trace. A null pointer exception always happens for the same reason: a variable you are dereferencing on a line doesn't point to an Object. You are not dereferencing any variables on that line, so that line can not be the line actually causing the exception.
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1073
Thanks Steve.Problem solve now.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: getting Nulpointer in xml file parsing
 
Similar Threads
Parsing String which comes as xml
how to pass a String which contain xml data
what is this UnknownHostException(mssql server 2008r2)
How to connect to the internet behind proxy ?
i am getting HttpHostConnectException