Android app crash when connecting to Box from another app
When trying to connect to Box from another app (Genius Scan in my case), it opens a first screen where I can either choose a saved account or enter another account :
Entering another account works fine but choosing a saved account crashes the Box app with following stack trace:
2021-01-05 11:03:09.893 28845-28845/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.box.android, PID: 28845
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.box.android/com.box.android.activities.SwitchingAccountDialogActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'android.content.SharedPreferences com.box.android.usercontext.IUserContextManager.getUserSharedPrefs()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3654)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3806)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2267)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'android.content.SharedPreferences com.box.android.usercontext.IUserContextManager.getUserSharedPrefs()' on a null object reference
at com.box.android.activities.SwitchingAccountDialogActivity.onBoxCreate(SwitchingAccountDialogActivity.java:46)
at com.box.android.activities.BoxFragmentActivity.handleCreation(BoxFragmentActivity.java:368)
at com.box.android.activities.BoxFragmentActivity.onMAMCreate(BoxFragmentActivity.java:214)
at com.microsoft.intune.mam.client.app.offline.OfflineActivityBehavior.onCreate(OfflineActivityBehavior.java:93)
at com.microsoft.intune.mam.client.app.MAMActivity.onCreate(MAMActivity.java:76)
at android.app.Activity.performCreate(Activity.java:7963)
at android.app.Activity.performCreate(Activity.java:7952)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3629)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3806)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2267)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
I have Box app with v5.14.12 (-at)
Please sign in to leave a comment.
Comments
0 comments