java.lang.NullPointerException: Callable returned null at io.reactivex.internal.functions.ObjectHelper.requireNonNull(ObjectHelper.java:39) at io.reactivex.internal.operators.observable.ObservableFromCallable.subscribeActual(ObservableFromCallable.java:43) at io.reactivex.Observable.subscribe(Observable.java:12267) at io.reactivex.internal.operators.observable.ObservableFilter.subscribeActual(ObservableFilter.java:30) at io.reactivex.Observable.subscribe(Observable.java:12267) at io.reactivex.internal.operators.observable.ObservableSwitchIfEmpty.subscribeActual(ObservableSwitchIfEmpty.java:31) at io.reactivex.Observable.subscribe(Observable.java:12267) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96) at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578) at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66) at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764)
RxJavaAssemblyException: assembled at dalvik.system.VMStack.getThreadStackTrace(Native Method) at io.reactivex.Observable.fromCallable(Observable.java:1808) at com.tianma.simpleweather.data.db.DBManager.loadWeatherByPK(DBManager.java:183) at com.tianma.simpleweather.data.repository.DataRepository.getWeather(DataRepository.java:40) at com.tianma.simpleweather.feature.weather.WeatherPresenter.loadWeather(WeatherPresenter.java:42) at com.tianma.simpleweather.feature.weather.WeatherFragment.doRefresh(WeatherFragment.java:262) at com.tianma.simpleweather.feature.weather.WeatherFragment.lazyLoad(WeatherFragment.java:240)