summaryrefslogtreecommitdiffstats
path: root/services/java/com/android
diff options
context:
space:
mode:
authorPedlar <pedlar88@gmail.com>2010-08-12 12:44:24 -0400
committerPedlar <pedlar88@gmail.com>2010-08-12 12:44:24 -0400
commit32cd5f5b2fbfb52c6e6e1cac6af273bf484aaa0c (patch)
tree1b35fbd0c91a44a4012c57fc53aed1a80870df3f /services/java/com/android
parent6453bd8a34dd7a877c40c766bed7ba16654e7761 (diff)
downloadframeworks_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-xservices/java/com/android/server/NotificationManagerService.java2
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;