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

Commit 1b7640a7 authored by Etan Cohen's avatar Etan Cohen Committed by Gerrit Code Review
Browse files

Merge "[CM] Fix NPE due to unvalidated callback value"

parents 7a1133eb 22e0fc1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3864,6 +3864,7 @@ public class ConnectivityServiceTest {
            }
        }

        testFactory.expectRemoveRequests(1);
        if (preUnregister) {
            mCm.unregisterNetworkCallback(networkCallback);

@@ -3873,7 +3874,6 @@ public class ConnectivityServiceTest {
            testFactory.triggerUnfulfillable(requests.get(newRequestId));
        } else {
            // Simulate the factory releasing the request as unfulfillable and expect onUnavailable!
            testFactory.expectRemoveRequests(1);
            testFactory.triggerUnfulfillable(requests.get(newRequestId));

            networkCallback.expectCallback(CallbackState.UNAVAILABLE, null);