mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-29 18:03:18 -06:00
bugfix in the Java binding
This commit is contained in:
1 parent
4008a2b111
commit
dbc8a6f579
1 file changed
+3
-1
@@ -680,7 +680,9 @@ jpgf_literal_callback_fn(PgfLiteralCallback* self,
|
||||
|
||||
jstring jsentence = gu2j_string(env, sentence);
|
||||
jobject result = (*env)->CallObjectMethod(env, callback->jcallback, callback->match_methodId, lin_idx, jsentence, *poffset);
|
||||
|
||||
if (result == NULL)
|
||||
return NULL;
|
||||
|
||||
jclass result_class = (*env)->GetObjectClass(env, result);
|
||||
|
||||
jfieldID epId = (*env)->GetFieldID(env, result_class, "ep", "Lorg/grammaticalframework/pgf/ExprProb;");
|
||||
|
||||
Reference in new issue
Block a user