diff --git a/mobile/android/base/jni-generator.py b/mobile/android/base/jni-generator.py index 577cea059b3..ddcbb9e1d1b 100644 --- a/mobile/android/base/jni-generator.py +++ b/mobile/android/base/jni-generator.py @@ -67,7 +67,7 @@ class Generator: paramNames = ['arg%d' % i for i in range(0, len(paramTypes))] if returnType == 'void': returnValue = '' - elif returnType == 'jobject': + elif returnType in ('jobject', 'jstring'): returnValue = 'NULL' elif returnType in ('jint', 'jfloat', 'jdouble', 'jlong'): returnValue = '0'