Commit c8b573a9 authored by Andrew Twyman's avatar Andrew Twyman

Fix compile issue with NN

Modified version of fix by @pweiskircher
parent cb4f3846
......@@ -291,7 +291,11 @@ namespace djinni
static CppType toCpp(JNIEnv* jniEnv, JniType j)
{
return j ? CppType(T::Boxed::toCpp(jniEnv, j)) : CppType();
if (j) {
return T::Boxed::toCpp(jniEnv, j);
} else {
return CppType();
}
}
static LocalRef<JniType> fromCpp(JNIEnv* jniEnv, const OptionalType<typename T::CppType> &c)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment