Skip to content Skip to sidebar Skip to footer

Nullpointerexception While Parsing Xml

I have followed the tutorial found here, and I am getting a NullPointerException. I've searched on StackOverflow and Google for a possible solution to this, but to no avail. Belo

Solution 1:

Solution 2:

siteList is null in your handler. Trace your program to check whether or not you pass through the line :

if (localName.equals("maintag"))
    {
        /** Start */
        sitesList = new SitesList();
    } 

Regards, Stéphane

Post a Comment for "Nullpointerexception While Parsing Xml"