Merge "Handle null thread name more gracefully in javaCreateThreadEtc()"

This commit is contained in:
Mike Lockwood
2013-10-10 18:00:40 +00:00
committed by Android (Google) Code Review

View File

@@ -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;