diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 8518101432803..2bc1879ebbf7a 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -1023,7 +1023,8 @@ static int javaDetachThread(void) void** args = (void**) malloc(3 * sizeof(void*)); // javaThreadShell must free int result; - assert(threadName != NULL); + if (!threadName) + threadName = "unnamed thread"; args[0] = (void*) entryFunction; args[1] = userData;