]> git.eshelyaron.com Git - emacs.git/commitdiff
Correctly check result of string lookup
authorPo Lu <luangruo@yahoo.com>
Fri, 23 Jun 2023 03:39:36 +0000 (11:39 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 23 Jun 2023 03:39:36 +0000 (11:39 +0800)
* src/android.c (android_wc_lookup_string): Check that
GetStringChars returns non-NULL, not if it throws an exception.

src/android.c

index d6a56dfe0b8f0092233a5c082ed15a37be3dd7c5..ff78e4c289a4a53c9e355ed9eceef6a29c3fb184 100644 (file)
@@ -5827,7 +5827,7 @@ android_wc_lookup_string (android_key_pressed_event *event,
          /* Now return this input method string.  */
          characters = (*android_java_env)->GetStringChars (android_java_env,
                                                            string, NULL);
-         android_exception_check_1 (string);
+         android_exception_check_nonnull (characters, string);
 
          /* Figure out how big the string is.  */
          size = (*android_java_env)->GetStringLength (android_java_env,