nextcloud / nextcloud/android

Application crash when moving photos

Open
#14,867 2 comments 0 reactions 1 assignee Claimed by @tobiasKaminsky View on GitHub
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

Mark files in any filder
Move them to any other folder
After moving app crashes

### Expected behaviour

App should not crash

### Actual behaviour

Runtime error

### Android version

14

### Device brand and model

Samsung S23+

### Stock or custom OS?

Stock

### Nextcloud android app version

3.31.1

### Nextcloud server version

31.0.4

### Using a reverse proxy?

I don't know

### Android logs

### Cause of error
```java
Exception in thread "Thread-531" java.lang.NullPointerException: Attempt to invoke virtual method 'void com.owncloud.android.datamodel.OCFile.setLastSyncDateForData(long)' on a null object reference
at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:258)
at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
at java.lang.Thread.run(Thread.java:1012)

```

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

### Device information
* Brand: `samsung`
* Device: `dm2q`
* Model: `SM-S916B`
* Id: `UP1A.231005.007`
* Product: `dm2qxeea`

### Firmware
* SDK: `34`
* Release: `14`
* Incremental: `S916BXXS8CYBD`

### Server error logs

```bash

```

### Additional information

App crashes after complete moving selected files. Moving is done.

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.