OSDN Git Service

Guard against NPE in SendBug
authorGuang Zhu <guangzhu@google.com>
Tue, 4 Sep 2012 20:49:46 +0000 (13:49 -0700)
committerGuang Zhu <guangzhu@google.com>
Tue, 4 Sep 2012 20:51:24 +0000 (13:51 -0700)
commit818b58c3cc3d9f99d65bc9e4e7ff5b80021079ec
treed0c142e7996c22f0fe450562ccde368e94ae2014
parent46899d1b5d606e9349a40079b60034e3cf6eaafb
Guard against NPE in SendBug

Add some null checks in case that SendBug is invoked while system
server is in fact not running, e.g. during a runtime restart. So
that we don't hit NPE in SendBug, looking suspiciously like the
cause rather than a consequence of the real issue.

Bug: 7097125

Change-Id: I82676ab936fe19a781c32f949e6e429eb4045d63
bugmailer/src/com/android/commands/sendbug/SendBug.java