Android - Discussions - App crashes on report/unreport on view comments screen

Description

On view comments screen when user try report/unreport any comment app crashes.

Crashlogs:

FATAL EXCEPTION: main
Process: org.edx.mobile, PID: 3366
java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.edx.mobile.discussion.DiscussionComment.getIdentifier()' 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.lang.String org.edx.mobile.discussion.DiscussionComment.getIdentifier()' on a null object reference
at org.edx.mobile.view.adapters.DiscussionCommentsAdapter.updateComment(DiscussionCommentsAdapter.java:203)
at org.edx.mobile.view.CourseDiscussionCommentsFragment$5.onSuccess(CourseDiscussionCommentsFragment.java:175)
at org.edx.mobile.view.CourseDiscussionCommentsFragment$5.onSuccess(CourseDiscussionCommentsFragment.java:172)
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) Select any course.
3) Tap on 'Discussion' tab.
4) Select any topic.
5) Select any discussion.
6) Tap on '# of comment' under response.
7) Try report/unreport any comment and view.

Reason for Variance

None

Release Notes

None

Customer Problem Statement

None

Status

Assignee

IbraheemZ

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