當試圖解析使用解析與JSOUP力標記爲關閉NullPointerException異常
Element overview = doc.select("div#object-overview").last();
Element paragraph = overview.select("p").last();
它給了我一個NullPointerException鏈接
http://pc.gamespy.com/pc/bastion/
。
而且也與此一
http://wii.gamespy.com/wii/jerry-rice-nitus-dog-football/
它給空指針這裏
Element featureList = doc.select("div.callout-box").last();
featuresText.setText("FEATURE: " + featureList.text());
這是爲什麼?我正在嘗試檢索概覽部分。它適用於所有其他項目。