From 0c56a2edc3d0179c7215dacf7c0ba4e1c176c014 Mon Sep 17 00:00:00 2001 From: Edouard Tisserant Date: Tue, 14 Jun 2016 10:26:15 +0200 Subject: [PATCH] Fixing crash when calling encrypt on message with outgoing color known as grey. --- src/gen_cpp_Engine.ysl2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gen_cpp_Engine.ysl2 b/src/gen_cpp_Engine.ysl2 index 5fb57da..915bcd6 100644 --- a/src/gen_cpp_Engine.ysl2 +++ b/src/gen_cpp_Engine.ysl2 @@ -189,9 +189,8 @@ tstylesheet { otherwise { | jobject «$name»_ = NULL; indent(0); - if "$retname != 'result'" > if (_«$retname») - > {\n || + if (_«$retname») { jclass clazz_«$name»_ = findClass(env, "org/pEp/jniadapter/«$jtype»"); assert(clazz_«$name»_); jmethodID constructor_«$name»_ = env->GetMethodID(clazz_«$name»_, "", "«$sig»");