am cac66f29: Merge "Return NOT_A_PROBABILITY in getProbability for inalid dictionary."
* commit 'cac66f29ebd8df26b25c21b0c228dfe63ea109ad': Return NOT_A_PROBABILITY in getProbability for inalid dictionary.main
commit
7f601359b4
|
@ -201,7 +201,7 @@ static int latinime_BinaryDictionary_getSuggestions(JNIEnv *env, jclass clazz, j
|
|||
static jint latinime_BinaryDictionary_getProbability(JNIEnv *env, jclass clazz, jlong dict,
|
||||
jintArray word) {
|
||||
Dictionary *dictionary = reinterpret_cast<Dictionary *>(dict);
|
||||
if (!dictionary) return 0;
|
||||
if (!dictionary) return NOT_A_PROBABILITY;
|
||||
const jsize wordLength = env->GetArrayLength(word);
|
||||
int codePoints[wordLength];
|
||||
env->GetIntArrayRegion(word, 0, wordLength, codePoints);
|
||||
|
|
Loading…
Reference in New Issue