OSDN Git Service

Telephony: Fix Crash in SimStatus Fragment
authorSneh Bansal <snehb@codeaurora.org>
Tue, 21 Feb 2017 12:33:41 +0000 (18:03 +0530)
committerArne Coucheron <arco68@gmail.com>
Fri, 1 Dec 2017 18:53:39 +0000 (18:53 +0000)
commitb91f71cb473a67e3fd46778b0cfa11e2dbb1dbc1
tree2bdea616b1e00ac8fdfcd3c2564c00fce0690129
parent0c152cd260829a0b8b9e2889e841aa0a5ce8df05
Telephony: Fix Crash in SimStatus Fragment

Null pointer exception caused because data connection state change
event triggered before the fragment could attach to the activity.
Add a null check before using the attached activity.

Change-Id: I3d9c8ca55ebcb481ba9de8012e27b592e0b9c0c5
CRs-Fixed: 2007186
src/com/android/settings/deviceinfo/SimStatus.java