Kelin-Hong / MVVMLight

A toolkit help to build Android MVVM Application
1.85k stars 333 forks source link

点击详情时报错 #23

Closed could-deng closed 6 years ago

could-deng commented 6 years ago

/com.kelin.mvvmlight.zhihu E/AndroidRuntime: FATAL EXCEPTION: main Process: com.kelin.mvvmlight.zhihu, PID: 3460 java.lang.RuntimeException: Unable to pause activity {com.kelin.mvvmlight.zhihu/com.kelin.mvvmlight.zhihu.newsdetail.NewsDetailActivity}: rx.exceptions.OnErrorNotImplementedException: Sequence contains no elements at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:3976) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3942) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3916) at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3890) at android.app.ActivityThread.-wrap15(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1605) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) Caused by: rx.exceptions.OnErrorNotImplementedException: Sequence contains no elements at rx.Observable$27.onError(Observable.java:8139) at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:157) at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:120) at rx.internal.operators.OperatorDoAfterTerminate$1.onError(OperatorDoAfterTerminate.java:54) at rx.internal.operators.OperatorDoOnEach$1.onError(OperatorDoOnEach.java:71) at rx.internal.operators.OperatorSingle$ParentSubscriber.onCompleted(OperatorSingle.java:131) at rx.internal.operators.OperatorTakeLastOne$ParentSubscriber.onCompleted(OperatorTakeLastOne.java:107) at rx.internal.operators.OperatorScan$2.onCompleted(OperatorScan.java:124) at rx.internal.operators.OperatorMerge$MergeSubscriber.emitLoop(OperatorMerge.java:617) at rx.internal.operators.OperatorMerge$MergeSubscriber.emit(OperatorMerge.java:529) at rx.internal.operators.OperatorMerge$InnerSubscriber.onCompleted(OperatorMerge.java:818) at rx.internal.operators.OperatorMap$1.onCompleted(OperatorMap.java:43) at rx.internal.operators.OperatorFilter$1.onCompleted(OperatorFilter.java:42) at rx.internal.operators.OnSubscribeRefCount$2.onCompleted(OnSubscribeRefCount.java:129) at rx.internal.operators.OperatorPublish$PublishSubscriber.checkTerminated(OperatorPublish.java:425) at rx.internal.operators.OperatorPublish$PublishSubscriber.dispatch(OperatorPublish.java:507) at rx.internal.operators.OperatorPublish$PublishSubscriber.onCompleted(OperatorPublish.java:307) at rx.internal.operators.OperatorMaterialize$ParentSubscriber.drain(OperatorMaterialize.java:149) at rx.internal.operators.OperatorMaterialize$ParentSubscriber.onCompleted(OperatorMaterialize.java:99) at rx.observers.SerializedObserver.onCompleted(SerializedObserver.java:182) at rx.observers.SerializedSubscriber.onCompleted(SerializedSubscriber.java:65) at rx.internal.operators.OperatorTakeUntil$1.onCompleted(OperatorTakeUntil.java:57) at rx.internal.operators.OperatorTakeUntil$2.onCompleted(OperatorTakeUntil.java:72) at rx.internal.operators.OperatorTakeUntil$2.onNext(OperatorTakeUntil.java:82) at rx.internal.operators.OperatorTake$1.onNext(OperatorTake.java:76) at rx.internal.operators.OperatorFilter$1.onNext(OperatorFilter.java:54) at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onNext(OperatorOnErrorResumeNextViaFunction.java:153) at rx.internal.operators.OnSubscribeCombineLatest$LatestCoordinator.drain(OnSubscribeCombineLatest.java:285) at rx.internal.operators.OnSubscribeCombineLatest$LatestCoordinator.combine(OnSubscribeCombineLatest.java:227) at rx.internal.operators.OnSubscribeCombineLatest$CombinerSubscriber.onNext(OnSubscribeCombineLatest.java:382) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139) at rx.internal.operators.OperatorSkip$1.onNext(OperatorSkip.java:59) 12-27 17:25:41.006 3460-3460/com.kelin.mvvmlight.zhihu E/AndroidRuntime: at rx.internal.operators.OnSubscribeRefCount$2.onNext(OnSubscribeRefCount.java:124) at rx.internal.operators.OperatorPublish$PublishSubscriber.dispatch(OperatorPublish.java:587) at rx.internal.operators.OperatorPublish$PublishSubscriber.onNext(OperatorPublish.java:285) at rx.internal.operators.NotificationLite.accept(NotificationLite.java:150) at rx.subjects.SubjectSubscriptionManager$SubjectObserver.emitNext(SubjectSubscriptionManager.java:253) at rx.subjects.BehaviorSubject.onNext(BehaviorSubject.java:160) at com.trello.rxlifecycle.components.support.RxAppCompatActivity.onPause(RxAppCompatActivity.java:65) at android.app.Activity.performPause(Activity.java:7115) at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1407) at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:3965) ... 11 more Caused by: java.util.NoSuchElementException: Sequence contains no elements ... 48 more