title: Android Array String
body: <p>Hi guys if i try to assign the string to string Array i am getting NULL POINTER EXCEPTION..
  Pls give me a solution..</p>
  
  <p>Here is my code and i am getting null pointer in this line   thumbs[j]=title;
  as code Follows...</p>
  
  <pre><code>for (int i = 0; i &lt; items.getLength(); i++) {
          Node item = items.item(i);
          NodeList properties = item.getChildNodes();
          for (int j = 0; j &lt; properties.getLength(); j++) {
              Node property = properties.item(j);
              String name = property.getNodeName();
              if (name.equalsIgnoreCase("title")) {
                  try{
                      property.normalize();
                      Spanned title2 = Html.fromHtml(property.getFirstChild().getNodeValue().replaceAll("\\&lt;.*?&gt;", ""));
                      title =  title2.toString();  
                  }catch(Exception e){
                       Log.v("Exception",""+e);
                  }
                  thumbs[j]=title;
              }
          }
      }
  </code></pre>