Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b91c5c0e authored by DvTonder's avatar DvTonder
Browse files

Framework: Fix NPE in notification manager if profiles disabled

No active profile group is returned and a NPE is triggered when a
notification override is being set

Change-Id: I8ca44567706ba9b57fc70c5513c3249eaf29eb73
parent 6418cf00
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1144,7 +1144,9 @@ public class NotificationManagerService extends INotificationManager.Stub
                        (ProfileManager) mContext.getSystemService(Context.PROFILE_SERVICE);

                ProfileGroup group = profileManager.getActiveProfileGroup(pkg);
                if (group != null) {
                    notification = group.processNotification(notification);
                }
            } catch(Throwable th) {
                Log.e(TAG, "An error occurred profiling the notification.", th);
            }