nextcloud / nextcloud/android

Crash: `Exception in thread "ParcelFileDescriptor Transfer Thread" java.lang.NullPointerException`

Open
#11,969 1 comment 0 reactions 0 assignees View on GitHub
bug performance: NPE :no_entry_sign:
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. Go to sleep.
2. Wake up to see crash report generated.

### Expected behaviour

No android app crash.

### Actual behaviour

1. On starting the phone for the first time in morning, I notice that there is no internet available on WiFi (Connected without internet), and has switched to mobile data.
2. See crash report for nextcloud.

### Android version

Android 13

### Device brand and model

Samsung S21 Ultra 5G

### Stock or custom OS?

Stock

### Nextcloud android app version

30250090

### Nextcloud server version

27

### Using a reverse proxy?

No

### Android logs

### Cause of error
```java
Exception in thread "ParcelFileDescriptor Transfer Thread" java.lang.NullPointerException
at java.io.SequenceInputStream.nextStream(SequenceInputStream.java:112)
at java.io.SequenceInputStream.read(SequenceInputStream.java:211)
at java.io.InputStream.read(InputStream.java:205)
at com.nextcloud.android.sso.aidl.ParcelFileDescriptorUtil$TransferThread.run(ParcelFileDescriptorUtil.java:76)

```

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

### Device information
* Brand: `samsung`
* Device: `p3s`
* Model: `SM-G998B`
* Id: `TP1A.220624.014`
* Product: `p3sxeea`

### Firmware
* SDK: `33`
* Release: `13`
* Incremental: `G998BXXS9EWH1`

### Server error logs

_No response_

### Additional information

Not sure what Nextcloud was trying to do in the background.

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.