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

Commit e539f591 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Handle NoSuchElementException inside SmartSpaceService" into main

parents fbe971fa 1c793f6d
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ import android.util.Slog;

import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.function.Consumer;

/**
@@ -321,9 +322,13 @@ public abstract class SmartspaceService extends Service {
        }

        public void destroy() {
            try {
                if (mCallback != null && mOnBinderDied != null) {
                    mCallback.asBinder().unlinkToDeath(this, 0);
                }
            } catch (NoSuchElementException e) {
                Slog.e(TAG, "Error trying to unlink to death:" + e);
            }
        }

        @Override