1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00

Correctly check result of string lookup

* src/android.c (android_wc_lookup_string): Check that
GetStringChars returns non-NULL, not if it throws an exception.
This commit is contained in:
Po Lu 2023-06-23 11:39:36 +08:00
parent 55c14c7252
commit 1a19ebdd28

View 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,