Android - Discussions - App crashes in offline mode when user try to access topics

Description

Crashlogs are as below:

FATAL EXCEPTION: main
Process: org.edx.mobile, PID: 26309
java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List org.edx.mobile.model.Page.getResults()' on a null object reference
at roboguice.util.SafeAsyncTask$SafeAsyncTaskAndroidCallable.onSuccess(SafeAsyncTask.java:190)
at roboguice.util.AndroidCallableWrapper.doOnSuccess(AndroidCallableWrapper.java:117)
at roboguice.util.AndroidCallableWrapper$2.run(AndroidCallableWrapper.java:99)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List org.edx.mobile.model.Page.getResults()' on a null object reference
at org.edx.mobile.view.adapters.InfiniteScrollUtils$PageLoadCallback.onPageLoaded(InfiniteScrollUtils.java:78)
at org.edx.mobile.view.CourseDiscussionPostsThreadFragment$5.onSuccess(CourseDiscussionPostsThreadFragment.java:236)
at org.edx.mobile.view.CourseDiscussionPostsThreadFragment$5.onSuccess(CourseDiscussionPostsThreadFragment.java:232)
at roboguice.util.SafeAsyncTask$SafeAsyncTaskAndroidCallable.onSuccess(SafeAsyncTask.java:188)
at roboguice.util.AndroidCallableWrapper.doOnSuccess(AndroidCallableWrapper.java:117) 
at roboguice.util.AndroidCallableWrapper$2.run(AndroidCallableWrapper.java:99) 
at android.os.Handler.handleCallback(Handler.java:739) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5254) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 

Steps to Reproduce

1) Login to edX app.
2) Switch off the wifi.
3) Tap to open discussion tab and tap to open any topic.

Reason for Variance

None

Release Notes

None

Customer Problem Statement

None

Status

Assignee

Unassigned

Reporter

Mirza Mubashar Baig

Labels

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Sub-Team(s)

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Epic Link

Priority

CAT-1
Configure