nextcloud / nextcloud/android

Default storage directory not writable in some Xiaomi devices

Open
#10,553 12 comments 0 reactions 0 assignees View on GitHub
bug hotspot: device storage performance: NPE :no_entry_sign: stable-3.20
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. Open Nextcloud Android app
2. Login to Nextcloud server (User Account is in initial state after creation on new installed server)
3. Rename standard folder "Photos" to "Photos & Videos"

_Edit: Renaming of any directory via App has the same result_

The Folder contains the three initial pictures only. No data has been uploaded to the user account (nor the server).

### Expected behaviour

Either folder will be renamed or an error is displayed, if naming conventions are not met.

### Actual behaviour

App crashes with error message seen in "android logs"

### Android version

12 SKQ1.211006.001

### Device brand and model

Xiaomi

### Stock or custom OS?

Stock

### Nextcloud android app version

30200390

### Nextcloud server version

24.0.1

### Using a reverse proxy?

I don't know

### Android logs

### Cause of error
```java
Exception in thread "main" java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.owncloud.android.lib.common.operations.RemoteOperationResult.isSuccess()' on a null object reference
at com.owncloud.android.ui.activity.FileActivity.onRemoteOperationFinish(FileActivity.java:348)
at com.owncloud.android.ui.activity.FileDisplayActivity.onRemoteOperationFinish(FileDisplayActivity.java:1649)
at com.owncloud.android.services.OperationsService.lambda$dispatchResultToOperationListeners$0(OperationsService.java:778)
at com.owncloud.android.services.OperationsService$$ExternalSyntheticLambda0.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8118)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)

```

### App information
* ID: `com.nextcloud.client`
* Version: `30200390`
* Build flavor: `gplay`

### Device information
* Brand: `Xiaomi`
* Device: `vili`
* Model: `2107113SG`
* Id: `SKQ1.211006.001`
* Product: `vili_eea`

### Firmware
* SDK: `31`
* Release: `12`
* Incremental: `V13.0.5.0.SKDEUVF`

### Server error logs

_No response_

### Additional information

Server is running as managed webhosting and has just been setup.
The user account has no admin rights and has only the preset of initial folders.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.