Skip to content
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

Android app crash when displaying folder details #13608

Closed
4 tasks done
CarlosCastaneda opened this issue Sep 23, 2024 · 3 comments
Closed
4 tasks done

Android app crash when displaying folder details #13608

CarlosCastaneda opened this issue Sep 23, 2024 · 3 comments
Assignees
Labels

Comments

@CarlosCastaneda
Copy link

⚠️ Before posting ⚠️

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

Steps to reproduce

When selecting view details of a folder app crashes. See Stack trace

Expected behaviour

Should display folder details without crashing

Actual behaviour

crashing with stacktrace

Android version

14

Device brand and model

Samsung GalaxyA52

Stock or custom OS?

Stock

Nextcloud android app version

3.30.0

Nextcloud server version

29.0.7.1

Using a reverse proxy?

No

Android logs

Cause of error

Exception in thread "main" java.lang.NullPointerException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference
    at com.owncloud.android.datamodel.OCFile.isInternalFolderSync(OCFile.java:1058)
    at com.owncloud.android.datamodel.FileDataStorageManager.isPartOfInternalTwoWaySync(FileDataStorageManager.java:2504)
    at com.owncloud.android.ui.fragment.FileDetailFragment.updateFileDetails(FileDetailFragment.java:572)
    at com.owncloud.android.ui.fragment.FileDetailFragment.onViewCreated(FileDetailFragment.java:266)
    at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3152)
    at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:608)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:286)
    at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2164)
    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2059)
    at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
    at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:702)
    at android.os.Handler.handleCallback(Handler.java:958)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:230)
    at android.os.Looper.loop(Looper.java:319)
    at android.app.ActivityThread.main(ActivityThread.java:8919)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

App information

  • ID: com.nextcloud.client
  • Version: 30300090
  • Build flavor: generic

Device information

  • Brand: samsung
  • Device: a52q
  • Model: SM-A525F
  • Id: UP1A.231005.007
  • Product: a52qnseea

Firmware

  • SDK: 34
  • Release: 14
  • Incremental: A525FXXU8FXH1

Server error logs

No response

Additional information

No response

@rmelotte
Copy link

This seems to be the same as #13607 (opened 1 minute earlier).

@CarlosCastaneda
Copy link
Author

There seem to be several issues causing the nullpointer exception #13597, #13596

@alperozturk96 alperozturk96 self-assigned this Sep 24, 2024
@alperozturk96
Copy link
Collaborator

Duplication of #13502

Could you try with this PR: #13612 ?

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

No branches or pull requests

3 participants