mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 10:46:33 +00:00
fix path checker initialization
This commit is contained in:
parent
de4b9e9a16
commit
1c5fdb8a0a
@ -785,15 +785,15 @@ JNIEXPORT jobject JNICALL Java_com_zerotier_sdk_Node_node_1init(
|
|||||||
cls, "pathChecker", "Lcom/zerotier/sdk/PathChecker;");
|
cls, "pathChecker", "Lcom/zerotier/sdk/PathChecker;");
|
||||||
if(fid == NULL)
|
if(fid == NULL)
|
||||||
{
|
{
|
||||||
|
LOGE("no path checker?");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp = env->GetObjectField(obj, fid);
|
tmp = env->GetObjectField(obj, fid);
|
||||||
if(tmp == NULL)
|
if(tmp != NULL)
|
||||||
{
|
{
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
ref->pathChecker = env->NewGlobalRef(tmp);
|
ref->pathChecker = env->NewGlobalRef(tmp);
|
||||||
|
}
|
||||||
|
|
||||||
ref->callbacks->dataStoreGetFunction = &DataStoreGetFunction;
|
ref->callbacks->dataStoreGetFunction = &DataStoreGetFunction;
|
||||||
ref->callbacks->dataStorePutFunction = &DataStorePutFunction;
|
ref->callbacks->dataStorePutFunction = &DataStorePutFunction;
|
||||||
|
Loading…
Reference in New Issue
Block a user