commit | 823f7f41dc1dc7a796f2b0a2666001a4933ef77a | [log] [tgz] |
---|---|---|
author | Tyler Gunn <tgunn@google.com> | Wed Dec 16 09:10:53 2015 -0800 |
committer | Amit Mahajan <amitmahajan@google.com> | Wed Dec 16 11:17:37 2015 -0800 |
tree | 94e93240b03ddb462122190da9a00ea0688e24e2 | |
parent | 0d3f7fa783846a6c10728bd4e3081685a887d422 [diff] |
Fix NPE which is causing com.android.phone to crash. It is possible for getOriginalConnection() to return null at the end of a call once the RIL has disconnected it. Added null check to ensure that isImsConnection() won't throw an NPE in this case. The original code was the following, which is inherently NPE safe: return getOriginalConnection() instanceof ImsPhoneConnection; Bug: 26222625 Change-Id: Iaa77a4d739578ddcfbbb5849f7ddf15e3bad0f76