chatmail / chatmail/core

Permanent crash caused by Accounts Manager

Open
#7,778 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
929
Forks
143
Avg merge
1d 20h
Merged PRs (30d)
53

Description

user reports that after phone battery drained, the app is now constantly crashing even after upgrading to more recent versions, this crash report is from 2.36.0:

```
java.lang.NullPointerException: Attempt to read from field 'int
com.b44t.messenger.rpc.Rpc$[Response.id](https://response.id/)' on a null object reference
at com.b44t.messenger.rpc.Rpc.processResponse(SourceFile:90)
at com.b44t.messenger.rpc.Rpc.lambda$start$0(Unknown Source)
at com.b44t.messenger.rpc.Rpc.a(SourceFile:1)
at [a6.h0.run](https://a6.h0.run/)(SourceFile:291)
at [java.lang.Thread.run](https://java.lang.thread.run/)([Thread.java:923](https://thread.java:923/))
```

it seems to be caused by `createAccountsCPtr` failing and then the RPC is returning `null` response

instead of failing completely and losing access to all your accounts (and no access to the log etc.) and crashing the app, it is better to just log an error event and skip that account from the account manager, the account will then no be returned in `DcAccounts.getAll()` and user will still be able to use and backup the other accounts and to get the log and see the actual error/problem with the corrupt account/db

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.