Skip to content

App crashes when opening folder after resetting encryption and re-encrypting (metadata is null exception) #15404

Open

Description

@mybigfriendjo

⚠️ 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

  1. Reset encryption in web app
  2. open android app
  3. set folder as encrypted
  4. confirm mnemonics
  5. tap/open encrypted folder
  6. crash

Expected behaviour

Everything up to point 5
Actually opening showing the encrypted folder

Actual behaviour

App crashes

Android version

16

Device brand and model

Pixel 8 Pro

Stock or custom OS?

Stock

Nextcloud android app version

3.32.2

Nextcloud server version

30.0.12 (hetzner saas)

Using a reverse proxy?

I don't know

Android logs

Cause of error

Exception in thread "Thread-31" java.lang.IllegalStateException: metadata is null!
    at com.owncloud.android.operations.RefreshFolderOperation.synchronizeData(RefreshFolderOperation.java:513)
    at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:433)
    at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:246)
    at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
    at java.lang.Thread.run(Thread.java:1119)

App information

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

Device information

  • Brand: google
  • Device: husky
  • Model: Pixel 8 Pro
  • Id: BP2A.250805.005
  • Product: husky

Firmware

  • SDK: 36
  • Release: 16
  • Incremental: 13691446

Server error logs

Additional information

I'm not on a preview version or anything so I don't know where the logs are.
I'm using hetzner as host.

Activity

  1. alperozturk96 commented on Aug 21, 2025

    @alperozturk96
    Collaborator

    @mybigfriendjo Hello

    Thank you for the report.

    Could you try with this version?

  2. mybigfriendjo commented on Aug 21, 2025

    @mybigfriendjo
    Author

    I still seem to have the same issue. I didn't do the whole procedure again but just tried to open the folder again in the new app.

    Cause of error

    Exception in thread "Thread-40" java.lang.IllegalStateException: metadata is null!
        at com.owncloud.android.operations.RefreshFolderOperation.synchronizeData(RefreshFolderOperation.java:508)
        at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:428)
        at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:249)
        at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
        at java.lang.Thread.run(Thread.java:1119)

    App information

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

    Device information

    • Brand: google
    • Device: husky
    • Model: Pixel 8 Pro
    • Id: BP2A.250805.005
    • Product: husky

    Firmware

    • SDK: 36
    • Release: 16
    • Incremental: 13691446
  3. changed the title [-]android app crashes when opening previously encrypted folder[/-] [+]App crashes when opening folder after resetting encryption and re-encrypting (metadata is null exception)[/+] on Sep 29, 2025
  4. rmelotte commented on Oct 27, 2025

    @rmelotte

    FWIW this is reproducible on 3.34.0.

    I believe for me it started happening after the upgrade to NC 32.0.0 which disabled the e2ee app.

    After enabling it again, e2ee files and folders have "hash-like" names, and pulling to refresh causes the exception shared in the OP.

  5. mybigfriendjo commented on Jan 28, 2026

    @mybigfriendjo
    Author

    Tried again today as I had some time. Server version is 31.0.10 (Hetzner)

    Still the same error on the gplay version

    Cause of error

    Exception in thread "Thread-24" java.lang.IllegalStateException: metadata is null!
        at com.owncloud.android.operations.RefreshFolderOperation.synchronizeData(RefreshFolderOperation.java:543)
        at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:463)
        at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:274)
        at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
        at java.lang.Thread.run(Thread.java:1563)

    App information

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

    Device information

    • Brand: google
    • Device: husky
    • Model: Pixel 8 Pro
    • Id: BP4A.260105.004.E1
    • Product: husky

    Firmware

    • SDK: 36
    • Release: 16
    • Incremental: 14587043
  6. mybigfriendjo commented on Apr 14, 2026

    @mybigfriendjo
    Author

    Server Version 32.0.6

    Cause of error

    Exception in thread "Thread-78" java.lang.IllegalStateException: metadata is null!
        at com.owncloud.android.operations.RefreshFolderOperation.synchronizeData(RefreshFolderOperation.java:546)
        at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:464)
        at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:275)
        at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
        at java.lang.Thread.run(Thread.java:1564)

    App information

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

    Device information

    • Brand: google
    • Device: husky
    • Model: Pixel 8 Pro
    • Id: CP1A.260305.018
    • Product: husky

    Firmware

    • SDK: 36
    • Release: 16
    • Incremental: 14887507
  7. Hakbarth commented on May 9, 2026

    @Hakbarth

    For me it happens when I try to upload a file

    Cause of error

    Exception in thread "Thread-29" java.lang.IllegalStateException: metadata is null!
        at com.owncloud.android.operations.RefreshFolderOperation.synchronizeData(RefreshFolderOperation.java:546)
        at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:464)
        at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:275)
        at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
        at java.lang.Thread.run(Thread.java:1564)

    App information

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

    Device information

    • Brand: samsung
    • Device: e2s
    • Model: SM-S926B
    • Id: BP2A.250605.031.A3
    • Product: e2sxxx

    Firmware

    • SDK: 36
    • Release: 16
    • Incremental: S926BXXSECZD1
  8. alperozturk96 commented on May 11, 2026

    @alperozturk96
    Collaborator

    Hello

    Fixed via:

    #16916
    #16944

    Will be included in next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions