Skip to content

App crashed with NPE in UploadPresenter due to null object returned by Proxy InvocationHandler #2737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ashishkumar468 opened this issue Mar 24, 2019 · 0 comments

Comments

@ashishkumar468
Copy link
Collaborator

Summary:
NullPointerException in UploadPresenter due to null object returned by Proxy InvocationHandler

System logs:

java.lang.NullPointerException: Expected to unbox a 'boolean' primitive type but was returned null
at $Proxy3.checkIfLoggedIn(Unknown Source)
at fr.free.nrw.commons.upload.UploadPresenter.handleSubmit(UploadPresenter.java:217)
at fr.free.nrw.commons.upload.UploadActivity.lambda$configureNavigationButtons$19(UploadActivity.java:558)
at fr.free.nrw.commons.upload.-$$Lambda$UploadActivity$EauR4SBocXHTUyMx7qKcuAKpptM.onClick(Unknown Source:2)
at android.view.View.performClick(View.java:6308)
at android.view.View$PerformClick.run(View.java:24949)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)

Device and Android version:
ANDROID_VERSION=8.1.0
BRAND=UMIDIGI
PHONE_MODEL=A3
CUSTOM_DATA=
STACK_TRACE=

Commons app version:

APP_VERSION_NAME=2.10.1-debug-reuploadimg

Would you like to work on the issue?
Yes

ashishkumar468 added a commit to ashishkumar468/apps-android-commons that referenced this issue Mar 24, 2019
* Added a CustomProxy class which overrides the invocation handler to return approproate values for different datatypes

(cherry picked from commit f68d2e880074277b75a60b730dd63254239a8971)
maskaravivek pushed a commit that referenced this issue Mar 26, 2019
* BugFix #2737
* Added a CustomProxy class which overrides the invocation handler to return approproate values for different datatypes

(cherry picked from commit f68d2e880074277b75a60b730dd63254239a8971)

* Added JavaDocs for CustomProxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant