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

Commit a2ce4a09 authored by twyen's avatar twyen Committed by android-build-merger
Browse files

Merge "Fix NPE when querying preferred without an account"

am: 3b42bce6

Change-Id: I6b01046c3b91b71718f39bff3c4b956065ab0260
parents c98b1924 3b42bce6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -388,7 +388,7 @@ public class CallingAccountSelector implements PreCallAction {
      if (cursor == null || !cursor.moveToFirst()) {
        return Optional.absent();
      }
      return Optional.of(cursor.getString(0));
      return Optional.fromNullable(cursor.getString(0));
    }
  }

+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ public interface SuggestionProvider {
    USER_SET,
    // The user has selected the SIM for all contacts on the account.
    ACCOUNT,
    // Unspecified reason.
    OTHER,
  }

  /** The suggestion. */