OSDN Git Service

Fix NullPointerException at RunningState
authorJohan Redestig <johan.redestig@sonymobile.com>
Fri, 5 Oct 2012 08:33:16 +0000 (10:33 +0200)
committerJohan Redestig <johan.redestig@sonymobile.com>
Tue, 26 Mar 2013 06:59:14 +0000 (07:59 +0100)
commit910b2116b0f1d3efdb95d663003a2181bf9faf33
tree5dc3cf318dd323a88e878b5bcafdfe3b98a62ad1
parentae9ebfd153d63beb03c018786cb3a7ca7610ce64
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