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

Commit 5b47b7f7 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Add Null check for extras bundle

Bug: 28982151
Change-Id: I1bcb809c8df79f1faa2ae082d353de94a6d64979
parent 6dd1ab35
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -756,9 +756,13 @@ public abstract class Connection {
     * listeners.
     */
    public void setConnectionExtras(Bundle extras) {
        mExtras = extras;
        if(extras != null) {
            mExtras = new Bundle(extras);
        } else {
            mExtras = null;
        }
        for (Listener l : mListeners) {
            l.onExtrasChanged(new Bundle(extras));
            l.onExtrasChanged(mExtras);
        }
    }