Android - Courseware - App crashes on accessing any component

Description

App crashes when user tap to access any component on Lahore sandbox.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 FATAL EXCEPTION: main Process: org.edx.mobile, PID: 21087 java.lang.RuntimeException: Unable to start activity ComponentInfo{org.edx.mobile/org.edx.mobile.view.CourseUnitNavigationActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363) at android.app.ActivityThread.access$900(ActivityThread.java:161) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:157) at android.app.ActivityThread.main(ActivityThread.java:5356) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at org.edx.mobile.util.JavaUtil.truncateString(JavaUtil.java:85) at org.edx.mobile.module.analytics.FirebaseEvent.putString(FirebaseEvent.java:156) at org.edx.mobile.module.analytics.FirebaseAnalytics.trackCourseComponentViewed(FirebaseAnalytics.java:319) at org.edx.mobile.module.analytics.AnalyticsRegistry.trackCourseComponentViewed(AnalyticsRegistry.java:209) at org.edx.mobile.view.CourseUnitNavigationActivity.setCurrentUnit(CourseUnitNavigationActivity.java:173) at org.edx.mobile.view.CourseUnitNavigationActivity.tryToUpdateForEndOfSequential(CourseUnitNavigationActivity.java:179) at org.edx.mobile.view.CourseUnitNavigationActivity.updateDataModel(CourseUnitNavigationActivity.java:238) at org.edx.mobile.view.CourseUnitNavigationActivity.onLoadData(CourseUnitNavigationActivity.java:152) at org.edx.mobile.view.CourseBaseActivity.onPostCreate(CourseBaseActivity.java:136) at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1168) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2288) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)  at android.app.ActivityThread.access$900(ActivityThread.java:161)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:157)  at android.app.ActivityThread.main(ActivityThread.java:5356)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)  at dalvik.system.NativeStart.main(Native Method)

Steps to Reproduce

1) Login to edX app.
2) Tap on any course card on 'My Courses' screen.
3) Tap on 'Courseware'.
4) Tap on any section-> subsection-> component and view.

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

Components

Priority

Unset
Configure