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

Commit f46f309e authored by Patrick Williams's avatar Patrick Williams
Browse files

SF: Fix windowInfosReportedListener NPE

Checks if windowInfosReportedListener is null before calling
onWindowInfosReported when listener status indicates an error.

Bug: 238356471
Bug: 238805948
Change-Id: I8aee73812553ae41512d9ebea9c499f497ced599
Test: manual
parent e2e8ef2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ void WindowInfosListenerInvoker::windowInfosChanged(

        auto status = listener->onWindowInfosChanged(windowInfos, displayInfos,
                                                     windowInfosReportedListener);
        if (!status.isOk()) {
        if (windowInfosReportedListener && !status.isOk()) {
            windowInfosReportedListener->onWindowInfosReported();
        }
    }