From c2f0bcf167733a87c69d4bfd06e5e370c8c3d3e9 Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 20 Jun 2013 16:28:20 +0800 Subject: [PATCH] issue #2129: Warning fix in PluginUtils.h --- plugin/protocols/platform/android/PluginUtils.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugin/protocols/platform/android/PluginUtils.h b/plugin/protocols/platform/android/PluginUtils.h index 633d7d089c..cb0c9a195f 100644 --- a/plugin/protocols/platform/android/PluginUtils.h +++ b/plugin/protocols/platform/android/PluginUtils.h @@ -100,13 +100,7 @@ public: , funcName , paramCode)) { - jstring strRet = NULL; - if (param != NULL) - { - strRet = (jstring) t.env->CallObjectMethod(pData->jobj, t.methodID, param); - } else { - strRet = (jstring) t.env->CallObjectMethod(pData->jobj, t.methodID); - } + jstring strRet = (jstring)t.env->CallObjectMethod(pData->jobj, t.methodID, param); ret = PluginJniHelper::jstring2string(strRet).c_str(); t.env->DeleteLocalRef(t.classID); }