RxJava group two responses one of which might be NULL with zip operator
问题 I want to make two concurent request to Realm database and return results with RxJava. The issue is that one of requests can return NULL object and I have a crash. How can I properly return results from both DB even if one of them NULL? Thanks. public void getDataFromTwoSources(DisposableObserver<ComplexUserDto> observer, String shopId) { Preconditions.checkNotNull(observer); final Observable<ComplexUserDto> observable = Observable.zip(firstRepository.getUserData(userId), secondRepository