From d7c38990dfab51837c60e4203549ea8cc8128d8f Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Mon, 27 Jan 2025 16:34:41 +0530 Subject: [PATCH] Corrected the error message. --- lib/src/main/cpp/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/cpp/utils.h b/lib/src/main/cpp/utils.h index c5d7d12..a4beb3f 100644 --- a/lib/src/main/cpp/utils.h +++ b/lib/src/main/cpp/utils.h @@ -110,7 +110,7 @@ shared_ptr getPtr(JNIEnv* env, jobject thisObj, const char* handleName = "nat jfieldID fidNumber = env->GetFieldID(thisClass, handleName, "J"); auto handle = reinterpret_cast*>(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; }