nextcloud / nextcloud/android

Selecting new folders for Instant Upload results in error

Open
#15,128 0 comments 0 reactions 0 assignees View on GitHub
0. Needs triage bug
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. Select multiple new folders for Instant Upload
2. Return to main menu

The app automatically prompted me to file this report but did not provide me with a lot of the information being requested by this form.

### Expected behaviour

Return to main menu without generating a prompt to file a report and begin uploading files from selected folders

### Actual behaviour

It sent me here and closed the app.

Once re-opened it appears to be doing what it's supposed to be doing.

### Android version

15

### Device brand and model

Samsung SM-S928U

### Stock or custom OS?

Stock

### Nextcloud android app version

3.32.0

### Nextcloud server version

Hub 10 (31.0.6)

### Using a reverse proxy?

Yes

### Android logs

### Cause of error
```java
Exception in thread "main" java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.owncloud.android.datamodel.OCFile.getRemotePath()' on a null object reference
at com.owncloud.android.ui.activity.FileDisplayActivity$UploadFinishReceiver.onReceive(FileDisplayActivity.java:1498)
at androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:313)
at androidx.localbroadcastmanager.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:121)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:342)
at android.app.ActivityThread.main(ActivityThread.java:9634)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)

```

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

### Device information
* Brand: `samsung`
* Device: `e3q`
* Model: `SM-S928U`
* Id: `AP3A.240905.015.A2`
* Product: `e3qsqw`

### Firmware
* SDK: `35`
* Release: `15`
* Incremental: `S928USQS4BYF2`

### Server error logs

```bash
I couldn't find anything relevant in the server's logs.
```

### Additional information

Also experiencing Issue #15039 but unsure if it's related. I tried adding folders to Instant Upload to see if I could get the main folder's newest images to upload, and that's when the app prompted me to file this report.

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.