element-hq / element-hq/element-android

[SDK] Application crashes if no connection could be made to Matrix Server

Open
#8,080 3 comments 0 reactions 0 assignees View on GitHub
matrix-sdk O-Occasional S-Major T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Description

If the Matrix SDK could not connect to the homeserver, the application crashes. This really should be caught and possibly returned in OnGlobalError, and should not let the whole application crash.

It either crashes on a UnknownHostException or a SocketTimeoutException: (these screenshots are crashes from SDK version 1.5.2, but the issue still applies in newest versions)

![Screenshot 2023-02-06 at 12 40 46](https://user-images.githubusercontent.com/9001576/216963409-6bdcb630-afb0-41a1-8ecc-f0cd82ccaf83.png)
![Screenshot 2023-02-06 at 12 41 56](https://user-images.githubusercontent.com/9001576/216963414-c7c66747-4c1e-4660-8264-901d9565d924.png)

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.