mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-30 02:13:18 -06:00
bugfix in the Java binding
This commit is contained in:
1 parent
4008a2b111
commit
dbc8a6f579
1 file changed
+2
@@ -680,6 +680,8 @@ jpgf_literal_callback_fn(PgfLiteralCallback* self,
|
|||||||
|
|
||||||
jstring jsentence = gu2j_string(env, sentence);
|
jstring jsentence = gu2j_string(env, sentence);
|
||||||
jobject result = (*env)->CallObjectMethod(env, callback->jcallback, callback->match_methodId, lin_idx, jsentence, *poffset);
|
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);
|
jclass result_class = (*env)->GetObjectClass(env, result);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user