nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.31k stars 1.78k forks source link

NPE: `AuthenticatorActivity.createAccount` in `getVersion()` #13965

Open Eshwarnani74 opened 2 weeks ago

Eshwarnani74 commented 2 weeks ago

Cause of error

Exception in thread "main" java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.owncloud.android.lib.resources.status.OwnCloudVersion.getVersion()' on a null object reference
    at com.owncloud.android.authentication.AuthenticatorActivity.createAccount(AuthenticatorActivity.java:1314)
    at com.owncloud.android.authentication.AuthenticatorActivity.onAuthenticatorTaskCallback(AuthenticatorActivity.java:1120)
    at com.owncloud.android.authentication.AuthenticatorAsyncTask.onPostExecute(AuthenticatorAsyncTask.kt:90)
    at com.owncloud.android.authentication.AuthenticatorAsyncTask.onPostExecute(AuthenticatorAsyncTask.kt:30)
    at android.os.AsyncTask.finish(AsyncTask.java:771)
    at android.os.AsyncTask.-$$Nest$mfinish(Unknown Source:0)
    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
    at android.os.Handler.dispatchMessage(Handler.java:108)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:328)
    at android.app.ActivityThread.main(ActivityThread.java:9242)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:594)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)

App information

Device information

Firmware

joshtrichards commented 2 weeks ago

Is this easily reproducible for you?

Is this a new installation?

What version of Nextcloud Server?

Eshwarnani74 commented 2 weeks ago

Yes after updating the app I got the error

On Wed, Nov 6, 2024, 7:25 PM Josh @.***> wrote:

Is this easily reproducible for you?

Is this a new installation?

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/android/issues/13965#issuecomment-2459817831, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCQVEFLYYWQA3XXFTVCUUFDZ7INTNAVCNFSM6AAAAABRILVBOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJZHAYTOOBTGE . You are receiving this because you authored the thread.Message ID: @.***>