From c8c8cb305e635fd90d1357cb1254bda1d39c50e8 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 18 Oct 2023 16:58:11 +0000 Subject: [PATCH] Fix an android startup crash. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4534 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/android/com/unprompted/tildefriends/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/com/unprompted/tildefriends/MainActivity.java b/src/android/com/unprompted/tildefriends/MainActivity.java index 598fb788..37013920 100644 --- a/src/android/com/unprompted/tildefriends/MainActivity.java +++ b/src/android/com/unprompted/tildefriends/MainActivity.java @@ -109,7 +109,7 @@ public class MainActivity extends Activity { }); } } - if (!key.reset()) { + if (key != null && !key.reset()) { Log.w("tildefriends", "watcher is no longer valid"); break; }