android icon indicating copy to clipboard operation
android copied to clipboard

Java crash, machine null object reference issue

Open qcdebug opened this issue 1 year ago • 2 comments

⚠️ Before posting ⚠️

  • [X] This is a bug, not a question or an enhancement.
  • [X] I've searched for similar issues and didn't find a duplicate.
  • [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [X] I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

Go back to home from looking at uploads screen

Expected behaviour

Goes to home screen

Actual behaviour

Crashes with log below

Android version

13

Device brand and model

Samsung galaxy

Stock or custom OS?

Stock

Nextcloud android app version

30280190

Nextcloud server version

28.0.3

Using a reverse proxy?

No

Android logs

Cause of error

Exception in thread "main" java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.util.Stack.push(java.lang.Object)' on a null object reference
    at com.owncloud.android.ui.activity.FileDisplayActivity.setSortListGroup(FileDisplayActivity.java:2497)
    at com.owncloud.android.ui.activity.FileDisplayActivity.setLeftFragment(FileDisplayActivity.java:616)
    at com.owncloud.android.ui.activity.FileDisplayActivity.setLeftFragment(FileDisplayActivity.java:604)
    at com.owncloud.android.ui.activity.FileDisplayActivity.onNewIntent(FileDisplayActivity.java:571)
    at android.app.Activity.performNewIntent(Activity.java:8607)
    at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1484)
    at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1497)
    at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:4365)
    at android.app.ActivityThread.handleNewIntent(ActivityThread.java:4372)
    at android.app.servertransaction.NewIntentItem.execute(NewIntentItem.java:56)
    at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
    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:2574)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8762)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

App information

  • ID: com.nextcloud.client
  • Version: 30280190
  • Build flavor: gplay

Device information

  • Brand: samsung
  • Device: c1q
  • Model: SM-N981U
  • Id: TP1A.220624.014
  • Product: c1qsqw

Firmware

  • SDK: 33
  • Release: 13
  • Incremental: N981USQS6HXA1

Server error logs

No response

Additional information

No response

qcdebug avatar Apr 10 '24 22:04 qcdebug

@qcdebug This problem should be solved via latest version of Android app

alperozturk96 avatar Apr 12 '24 08:04 alperozturk96

Thanks, I can’t tell by your wording if that’s already out and my phone wasn’t up to date or if it’s a to be published version.

I’ll check for new versions now, thank you for being so responsive.

From: Alper Ă–ztĂĽrk @.> Sent: Friday, April 12, 2024 3:17 AM To: nextcloud/android @.> Cc: qcdebug @.>; Mention @.> Subject: Re: [nextcloud/android] Java crash, machine null object reference issue (Issue #12857)

@qcdebug https://github.com/qcdebug This problem should be solved via latest version of Android app

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/android/issues/12857#issuecomment-2051251316 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALL55V6MT6KLPMVYA3QANDTY46J7LAVCNFSM6AAAAABGBINTV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJRGI2TCMZRGY . You are receiving this because you were mentioned. https://github.com/notifications/beacon/ALL55V6UONXLX6LPNPQGRBDY46J7LA5CNFSM6AAAAABGBINTV6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT2IOOHI.gif Message ID: @.*** @.***> >

qcdebug avatar Apr 12 '24 15:04 qcdebug

Duplicate of #12649

joshtrichards avatar Jun 13 '24 14:06 joshtrichards