Skip to content

Commit 9073147

Browse files
committed
Fix crash when updating settings.
Signed-off-by: Katharine Berry <[email protected]>
1 parent 551c410 commit 9073147

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/c/root_window.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ static void prv_window_disappear(Window* window) {
156156
static void prv_app_message_handler(DictionaryIterator *iter, void *context) {
157157
RootWindow* rw = context;
158158
Tuple *tuple = dict_find(iter, MESSAGE_KEY_COBBLE_WARNING);
159+
if (!tuple) {
160+
return;
161+
}
159162
if (tuple->value->int32 == 1) {
160163
rw->talking_horse_overridden = true;
161164
talking_horse_layer_set_text(rw->talking_horse_layer, "Cobble has many Bobby bugs.");

0 commit comments

Comments
 (0)