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

Commit a5916349 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix Null Pointer crash" am: f319161f am: e0fc3035 am: 619c5c1f

parents 0fe47ebd 619c5c1f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -378,6 +378,17 @@ public class MapClientContentTest {
                eq(SubscriptionManager.SUBSCRIPTION_TYPE_REMOTE_SIM));
    }

    /**
     * Test to validate that cleaning content does not crash when no subscription are available.
     */
    @Test
    public void testCleanUpWithNoSubscriptions() {
        when(mMockSubscription.getSubscriptionType())
                .thenReturn(null);

        MapClientContent.clearAllContent(mMockContext);
    }

    void createTestMessages() {
        mOriginator = new VCardEntry();
        VCardProperty property = new VCardProperty();