diff options
author | Narayan Kamath <narayan@google.com> | 2014-04-12 12:25:50 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-04-12 12:25:50 +0100 |
commit | 90c75cf02e8e36be8679273f4ea15fd145001033 (patch) | |
tree | 8619abb2bafa9ece6622855ec829b0573d4f99bb /cmds | |
parent | b093e485bbd790cc4d9678451c8cce4d361c2cf2 (diff) | |
download | frameworks_base-90c75cf02e8e36be8679273f4ea15fd145001033.zip frameworks_base-90c75cf02e8e36be8679273f4ea15fd145001033.tar.gz frameworks_base-90c75cf02e8e36be8679273f4ea15fd145001033.tar.bz2 |
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
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/app_process/app_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |