diff options
author | Pedlar <pedlar88@gmail.com> | 2010-08-12 12:44:24 -0400 |
---|---|---|
committer | Pedlar <pedlar88@gmail.com> | 2010-08-12 12:44:24 -0400 |
commit | 32cd5f5b2fbfb52c6e6e1cac6af273bf484aaa0c (patch) | |
tree | 1b35fbd0c91a44a4012c57fc53aed1a80870df3f /services/java/com/android | |
parent | 6453bd8a34dd7a877c40c766bed7ba16654e7761 (diff) | |
download | frameworks_base-32cd5f5b2fbfb52c6e6e1cac6af273bf484aaa0c.zip frameworks_base-32cd5f5b2fbfb52c6e6e1cac6af273bf484aaa0c.tar.gz frameworks_base-32cd5f5b2fbfb52c6e6e1cac6af273bf484aaa0c.tar.bz2 |
Added if null check incase you never set any apps in the LED notifications.
Diffstat (limited to 'services/java/com/android')
-rwxr-xr-x | services/java/com/android/server/NotificationManagerService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 26c601c..de67416 100755 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -1118,6 +1118,8 @@ class NotificationManagerService extends INotificationManager.Stub public String[] findPackage(String pkg) { String mBaseString = Settings.System.getString(mContext.getContentResolver(), Settings.System.NOTIFICATION_PACKAGE_COLORS); String[] mBaseArray = getArray(mBaseString); + if(mBaseArray == null) + return null; for(int i = 0; i < mBaseArray.length; i++) { if(isNull(mBaseArray[i])) { continue; |