From 90c75cf02e8e36be8679273f4ea15fd145001033 Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Sat, 12 Apr 2014 12:25:50 +0100 Subject: Don't compare String8s to NULL. Use String8::isEmpty instead. Note that this code path is hit only if the zygote calls ::exit, and that never happens unless the VM invocation fails. Change-Id: I0e7d3a86a79b12b2174ca3bf0dbe1904e33c041a --- cmds/app_process/app_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds') diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp index c520b58..859d83b 100644 --- a/cmds/app_process/app_main.cpp +++ b/cmds/app_process/app_main.cpp @@ -97,7 +97,7 @@ public: virtual void onExit(int code) { - if (mClassName == NULL) { + if (mClassName.isEmpty()) { // if zygote IPCThreadState::self()->stopProcess(); } -- cgit v1.1