How to pass null from C++ to Java via Qt JNI?

I'm trying to pass a null value to a QAndroidJniObject::callObjectMethod() and I can't find how to do it.

The code:

void generateEncryptionKey()

{

auto keyStore = getKeystore();

auto generator = getKeyGenerator();

keyStore.callObjectMethod(

"load",

"(Ljava/security/KeyStore/LoadStoreParameter;)V"

// what to put here for null value?

);

}...

Read More »

By: StackOverFlow - 6 days ago

Related Posts