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

Don't panic if config is nil in community #3743

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

cammellos
Copy link
Contributor

I have encountered a crash in the app after syncing, looks like a community has been created without a Config.
This crashes the app after the user logs in.
This commit prevents the app from crashing, but does not fix the underlaying issue (that's something I will have to investigate). Added tests to validate the behavior.

@cammellos cammellos self-assigned this Jul 12, 2023
@status-im-auto
Copy link
Member

status-im-auto commented Jul 12, 2023

Jenkins Builds

Click to see older builds (24)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f15b878 #1 2023-07-12 08:59:19 ~2 min linux 📦zip
✔️ f15b878 #1 2023-07-12 09:01:09 ~4 min android 📦aar
✔️ f15b878 #1 2023-07-12 09:17:06 ~20 min tests 📄log
✔️ 26595da #2 2023-07-12 13:45:40 ~2 min linux 📦zip
✔️ 26595da #2 2023-07-12 13:47:35 ~4 min android 📦aar
✖️ 26595da #2 2023-07-12 13:50:56 ~8 min tests 📄log
✔️ d736270 #3 2023-07-12 14:24:42 ~1 min android 📦aar
✔️ d736270 #3 2023-07-12 14:25:49 ~2 min linux 📦zip
✖️ d736270 #3 2023-07-12 14:32:02 ~8 min tests 📄log
✔️ 2e43fa3 #4 2023-07-12 14:31:29 ~1 min linux 📦zip
✔️ 2e43fa3 #4 2023-07-12 14:31:56 ~1 min android 📦aar
✔️ 2e43fa3 #4 2023-07-12 14:37:19 ~4 min ios 📦zip
✖️ 2e43fa3 #4 2023-07-12 14:39:00 ~6 min tests 📄log
✔️ a2d3876 #5 2023-07-13 14:03:55 ~1 min linux 📦zip
✔️ a2d3876 #5 2023-07-13 14:04:11 ~1 min android 📦aar
✔️ a2d3876 #5 2023-07-13 14:05:05 ~2 min ios 📦zip
✖️ a2d3876 #5 2023-07-13 14:09:26 ~6 min tests 📄log
✔️ e098d15 #6 2023-07-13 14:13:20 ~1 min linux 📦zip
✔️ e098d15 #6 2023-07-13 14:13:52 ~1 min android 📦aar
✔️ e098d15 #6 2023-07-13 14:15:51 ~3 min ios 📦zip
✖️ e098d15 #6 2023-07-13 14:30:40 ~18 min tests 📄log
✔️ d910902 #7 2023-07-13 14:36:57 ~1 min linux 📦zip
✔️ d910902 #7 2023-07-13 14:37:31 ~1 min android 📦aar
✖️ d910902 #7 2023-07-13 14:54:22 ~18 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ d1ec653 #8 2023-07-13 15:38:47 ~1 min linux 📦zip
✖️ d1ec653 #8 2023-07-13 15:38:49 ~1 min tests 📄log
✔️ d1ec653 #8 2023-07-13 15:39:11 ~1 min android 📦aar
✔️ d1ec653 #8 2023-07-13 15:40:00 ~2 min ios 📦zip
✖️ d1ec653 #9 2023-07-13 16:20:10 ~21 min tests 📄log
✖️ d1ec653 #10 2023-07-13 17:20:55 ~15 min tests 📄log
✔️ 2729f28 #9 2023-07-14 07:06:15 ~1 min linux 📦zip
✔️ 2729f28 #9 2023-07-14 07:06:31 ~1 min android 📦aar
✔️ 2729f28 #9 2023-07-14 07:07:32 ~2 min ios 📦zip
✔️ 2729f28 #11 2023-07-14 07:21:40 ~16 min tests 📄log

@cammellos cammellos force-pushed the bug/avoid-panic-in-has-permissions branch from f15b878 to 26595da Compare July 12, 2023 13:42
@cammellos cammellos force-pushed the bug/avoid-panic-in-has-permissions branch 2 times, most recently from d910902 to d1ec653 Compare July 13, 2023 15:37
I have encountered a crash in the app after syncing, looks like a
community has been created without a Config.
This crashes the app after the user logs in.
This commit prevents the app from crashing, but does not fix the
underlaying issue (that's something I will have to investigate).
Added tests to validate the behavior.

Check community exists
@cammellos cammellos force-pushed the bug/avoid-panic-in-has-permissions branch from d1ec653 to 2729f28 Compare July 14, 2023 07:04
@cammellos cammellos merged commit 1a9742a into develop Jul 14, 2023
@cammellos cammellos deleted the bug/avoid-panic-in-has-permissions branch July 14, 2023 07:23
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.

3 participants