From c4bbeb5b40c1d8115c1bc9d5de450c27564064aa Mon Sep 17 00:00:00 2001 From: Bill Levesque Date: Sun, 8 Mar 2020 11:03:32 +0800 Subject: [PATCH] 1.if remark len is 0 let remark equals space --- app/src/main/cpp/libxdag_jni.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/cpp/libxdag_jni.cpp b/app/src/main/cpp/libxdag_jni.cpp index a41468e..8e72efc 100644 --- a/app/src/main/cpp/libxdag_jni.cpp +++ b/app/src/main/cpp/libxdag_jni.cpp @@ -335,6 +335,10 @@ JNIEXPORT jint JNICALL Java_io_xdag_xdagwallet_wrapper_XdagWrapper_XdagXfer( isCopy = JNI_TRUE; const char* remark = env->GetStringUTFChars(sendRemark,&isCopy); + if(remark != NULL && strlen(remark) == 0){ + remark = " "; + } + LOGI("xdag xfer coins recv address %s recv amount %s remark %s ",address,amount,remark); xdag_send_coin(amount,address,remark);