mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-08-03 19:16:10 -04:00
Corrected the error message.
This commit is contained in:
parent
c5de943905
commit
d7c38990df
@ -110,7 +110,7 @@ shared_ptr<T> getPtr(JNIEnv* env, jobject thisObj, const char* handleName = "nat
|
||||
jfieldID fidNumber = env->GetFieldID(thisClass, handleName, "J");
|
||||
auto handle = reinterpret_cast<shared_ptr<T>*>(env->GetLongField(thisObj, fidNumber));
|
||||
if (handle == nullptr) {
|
||||
throw NativeHandleDisposedException("The native object is already has been disposed");
|
||||
throw NativeHandleDisposedException("The native object has already been disposed");
|
||||
}
|
||||
return *handle;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user