When opened via sharing button, Nextcloud app doesn't unlock and finally crashes
- Dominant language
- Kotlin
- Stars
- 5.6k
- Forks
- 2k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 92
Description
### ⚠️ Before posting ⚠️
- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/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](https://nextcloud.com/contribute/code-of-conduct/).
### Steps to reproduce
1. Have the nextcloud app locked with device's lock screen pattern.
2. Open a file which exists locally on the device. (In this case, it was a photo in Aves, but I experienced this behaviour before with other files, from other apps, too)
3. Hit share -> Nextcloud
4. Prompt to unlock Nextcloud appears
5. After correctly drawing the unlock pattern, the Nextcloud lock screen reappears. This repeats as long as you try unlocking.
6. Trying to exit using the Android "back" gesture doesn't work at first, only reopening the Nextcloud lock screen.
7. After multiple attempts of exiting using the "back" gesture, Nextcloud crashes
### Expected behaviour
When sharing a file to the nextcloud app, I want to be able to select the account and folder I want the file to be uploaded to.
### Actual behaviour
See steps to reproduce step 4 and further
### Android version
13
### Device brand and model
Sony XQ-BQ52
### Stock or custom OS?
Stock
### Nextcloud android app version
330000190
### Nextcloud server version
varies (3 different servers connected)
### Using a reverse proxy?
I don't know
### Android logs
### Cause of error
```java
Exception in thread "Thread-12" 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: `Sony`
* Device: `XQ-BQ52`
* Model: `XQ-BQ52`
* Id: `61.2.A.0.472A`
* Product: `XQ-BQ52_EEA`
### Firmware
* SDK: `33`
* Release: `13`
* Incremental: `061002A0000472A1658379172`
### Server error logs
```bash
```
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.