Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: fix parsing allowed availability #268

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

saghul
Copy link
Collaborator

@saghul saghul commented Aug 16, 2019

Some devices (notably Samsungs running Android 8 and 6) use strings
instead of the actual constants.

Sample backtrace:

Fatal Exception: java.lang.NumberFormatException: Invalid int: "AVAILABILITY_BUSY"
       at java.lang.Integer.invalidInt + 138(Integer.java:138)
       at java.lang.Integer.parse + 410(Integer.java:410)
       at java.lang.Integer.parseInt + 367(Integer.java:367)
       at java.lang.Integer.parseInt + 334(Integer.java:334)
       at com.calendarevents.CalendarEvents.calendarAllowedAvailabilitiesFromDBString + 749(CalendarEvents.java:749)

Some devices (notably Samsungs running Android 8 and 6) use strings
instead of the actual constants.

Sample backtrace:

```
Fatal Exception: java.lang.NumberFormatException: Invalid int: "AVAILABILITY_BUSY"
       at java.lang.Integer.invalidInt + 138(Integer.java:138)
       at java.lang.Integer.parse + 410(Integer.java:410)
       at java.lang.Integer.parseInt + 367(Integer.java:367)
       at java.lang.Integer.parseInt + 334(Integer.java:334)
       at com.calendarevents.CalendarEvents.calendarAllowedAvailabilitiesFromDBString + 749(CalendarEvents.java:749)
```
saghul added a commit to saghul/jitsi-meet that referenced this pull request Aug 16, 2019
saghul added a commit to jitsi/jitsi-meet that referenced this pull request Aug 16, 2019
@MoOx MoOx merged commit 3aa0d7d into wmcmahan:master Apr 24, 2020
@MoOx
Copy link
Collaborator

MoOx commented Apr 24, 2020

Thanks a lot for this fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants