weikipeng / fanfoudroid

Automatically exported from code.google.com/p/fanfoudroid
0 stars 0 forks source link

[report from market]NullPointerException @ Response.asStream #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:200)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
at java.lang.Thread.run(Thread.java:1102)
Caused by: java.lang.NullPointerException
at com.ch_linghu.fanfoudroid.http.Response.asStream(Response.java:28)
at com.ch_linghu.fanfoudroid.http.Response.asString(Response.java:53)
at com.ch_linghu.fanfoudroid.http.Response.asJSONArray(Response.java:100)
at com.ch_linghu.fanfoudroid.fanfou.Status.constructStatuses(Status.java:381)
at com.ch_linghu.fanfoudroid.fanfou.Weibo.getFriendsTimeline(Weibo.java:434)
at 
com.ch_linghu.fanfoudroid.TwitterActivity.getMessageSinceId(TwitterActivity.java
:207)
at 
com.ch_linghu.fanfoudroid.ui.base.TwitterCursorBaseActivity$RetrieveTask._doInBa
ckground(TwitterCursorBaseActivity.java:504)
at 
com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:95)
at com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
... 4 more

Original issue reported on code.google.com by ch.lin...@gmail.com on 3 Jun 2011 at 8:29

GoogleCodeExporter commented 9 years ago
这是哪个版本?

Original comment by lds1...@gmail.com on 3 Jun 2011 at 2:23

GoogleCodeExporter commented 9 years ago
108 和 109 都是 0.7.3 
的,发布0.7.3的时候那个测试代码还没有屏蔽,相关的问题也
没有改。

Original comment by ch.lin...@gmail.com on 3 Jun 2011 at 2:25

GoogleCodeExporter commented 9 years ago
<code>  
  public InputStream asStream() throws ResponseException {
        HttpEntity entity = mResponse.getEntity();
        //FIXME: entity 可能为空
  ...
  }
</code>

Already fixed.

Original comment by lds2...@gmail.com on 3 Jun 2011 at 2:40