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

Commit 68dd95a5 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Merge "Fix NPE by returning empty params." into rvc-dev am: 4d420fca...

Merge "Merge "Fix NPE by returning empty params." into rvc-dev am: 4d420fca am: d4ae9b2c am: 0ea37637" into rvc-qpr-dev-plus-aosp am: 279f3ede

Change-Id: I7e120a989e1e5ec4849abc268cda4316b8f05532
parents ff7c263b 279f3ede
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -69,9 +69,12 @@ public abstract class BindStage<Params> extends BindRequester {
        if (params == null) {
            // TODO: This should throw an exception but there are some cases of re-entrant calls
            // in NotificationEntryManager (e.g. b/155324756) that cause removal in update that
            // lead to inflation after the notification is "removed".
            // lead to inflation after the notification is "removed". We return an empty params
            // to avoid any NPEs for now, but we should remove this when all re-entrant calls are
            // fixed.
            Log.wtf(TAG, String.format("Entry does not have any stage parameters. key: %s",
                            entry.getKey()));
            return newStageParams();
        }
        return params;
    }