OSDN Git Service

Fix NullPointerException at RunningState
authorJohan Redestig <johan.redestig@sonymobile.com>
Fri, 5 Oct 2012 08:33:16 +0000 (10:33 +0200)
committerThe Android Automerger <android-build@android.com>
Wed, 19 Jun 2013 02:11:30 +0000 (19:11 -0700)
commit9b70a219607f34151a84a48bf99f06a0562a187f
tree14106a7053d9c5a72f1c9f7edd523ac24704bb99
parentaf442496a9c03cc8851ba24bcea7f4a164c1bb89
Fix NullPointerException at RunningState

getServiceInfo returns null if you have a service defined in the
manifest as: <service android:name=".Xxx" android:exported="false" />
or and in an <application> with no label or icon.
Dont crash the Settings application because of that.

Change-Id: I6f9f69c130e610b7e4ab66426177b7bade1e1515
src/com/android/settings/applications/RunningState.java