diff options
| author | Po Lu | 2023-03-01 09:30:01 +0800 |
|---|---|---|
| committer | Po Lu | 2023-03-01 09:30:01 +0800 |
| commit | f8a2619d981b7ba578378e592b878f08f29e4ba9 (patch) | |
| tree | dd251e37ca11afa32c820d8685bd01525ebc321a /src/androidselect.c | |
| parent | 49d5aa365793ee7d71d42e506160f5bb4341b476 (diff) | |
| download | emacs-f8a2619d981b7ba578378e592b878f08f29e4ba9.tar.gz emacs-f8a2619d981b7ba578378e592b878f08f29e4ba9.zip | |
More fixes to JNI error checking
* src/android.c (android_query_tree, android_get_geometry)
(android_translate_coordinates, android_query_battery):
Correctly handle result of GetTArrayElements.
(android_exception_check_nonnull): New function.
* src/android.h:
* src/androidselect.c (Fandroid_get_clipboard): Likewise.
Diffstat (limited to 'src/androidselect.c')
| -rw-r--r-- | src/androidselect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/androidselect.c b/src/androidselect.c index 2d8f14bb90d..3947ab99166 100644 --- a/src/androidselect.c +++ b/src/androidselect.c | |||
| @@ -178,7 +178,7 @@ Alternatively, return nil if the clipboard is empty. */) | |||
| 178 | bytes); | 178 | bytes); |
| 179 | data = (*android_java_env)->GetByteArrayElements (android_java_env, | 179 | data = (*android_java_env)->GetByteArrayElements (android_java_env, |
| 180 | bytes, NULL); | 180 | bytes, NULL); |
| 181 | android_exception_check_1 (bytes); | 181 | android_exception_check_nonnull (data, bytes); |
| 182 | 182 | ||
| 183 | string = make_unibyte_string ((char *) data, length); | 183 | string = make_unibyte_string ((char *) data, length); |
| 184 | 184 | ||