zh-wang / YWeatherGetter4a

An Yahoo Weather API wrapper for android
99 stars 45 forks source link

random bug #13

Closed raicas closed 10 years ago

raicas commented 10 years ago

04-12 21:27:46.744 21869-22034/com.BlackSnowStudio.valkyrie E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #2

java.lang.RuntimeException: An error occured while executing doInBackground()
        at android.os.AsyncTask$3.done(AsyncTask.java:300)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
        at java.util.concurrent.FutureTask.run(FutureTask.java:242)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
        at java.lang.Thread.run(Thread.java:841)
 Caused by: java.lang.NullPointerException
        at zh.wang.android.apis.yweathergetter4a.WOEIDUtils.parseLocationLines(WOEIDUtils.java:265)
        at zh.wang.android.apis.yweathergetter4a.WOEIDUtils.parseWOEID(WOEIDUtils.java:209)
        at zh.wang.android.apis.yweathergetter4a.WOEIDUtils.queryWOEIDfromYahooAPIs(WOEIDUtils.java:125)
        at zh.wang.android.apis.yweathergetter4a.WOEIDUtils.getWOEID(WOEIDUtils.java:90)
        at zh.wang.android.apis.yweathergetter4a.YahooWeather$WeatherQueryByLatLonTask.doInBackground(YahooWeather.java:416)
        at zh.wang.android.apis.yweathergetter4a.YahooWeather$WeatherQueryByLatLonTask.doInBackground(YahooWeather.java:406)
        at android.os.AsyncTask$2.call(AsyncTask.java:288)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)

            at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)             at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)             at java.lang.Thread.run(Thread.java:841)

zh-wang commented 10 years ago

fixed

raicas commented 10 years ago

thanks :)