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:
parent
55c14c7252
commit
1a19ebdd28
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue