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
This commit is contained in:
Narayan Kamath
2014-04-12 12:25:50 +01:00
parent b093e485bb
commit 90c75cf02e

View File

@@ -97,7 +97,7 @@ public:
virtual void onExit(int code)
{
if (mClassName == NULL) {
if (mClassName.isEmpty()) {
// if zygote
IPCThreadState::self()->stopProcess();
}