title: JSoup - Error extracting contents of a div
body: <p>I'm working on an Android project and I'm currently playing around with JSoup to extract data from a website for the application.</p>
  
  <p>The website I'm targeting is <a href="http://www.last.fm/music/Bright+Eyes" rel="nofollow">here</a>.</p>
  
  <p>And I want to extract the main information text. The xpath for that div is</p>
  
  <p><code>//div[@id='wikiAbstract']</code></p>
  
  <p>My complete code is as follows</p>
  
  <pre><code>public class Main extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
     TextView tv = (TextView) findViewById(R.id.textView1);
     Document doc = null;
  
     try {
         doc = Jsoup.connect("http://www.last.fm/music/Bright+Eyes").get();
  
     } catch (IOException e) {
         e.printStackTrace();
     }
  
     Element divs = doc.select("div#wikiAbstract").first();
     tv.setText(divs.text());
  </code></pre>
  
  <p>}</p>
  
  <p>However, I'm getting a Null Pointer Exception. I have tested the same code on other websites and divs and it works perfectly. I can't understand why this is different.</p>
  
  <p>I would appreciate any help/feedback from anyone, thanks in advance.</p>