Crash early when using a null RecipientId.
This commit is contained in:
parent
b3c7c8db5c
commit
5b755b9501
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,7 @@ public class Recipient {
|
|||
*/
|
||||
@AnyThread
|
||||
public static @NonNull LiveRecipient live(@NonNull RecipientId id) {
|
||||
Preconditions.checkNotNull(id, "ID cannot be null.");
|
||||
return ApplicationDependencies.getRecipientCache().getLive(id);
|
||||
}
|
||||
|
||||
|
@ -92,6 +93,7 @@ public class Recipient {
|
|||
*/
|
||||
@WorkerThread
|
||||
public static @NonNull Recipient resolved(@NonNull RecipientId id) {
|
||||
Preconditions.checkNotNull(id, "ID cannot be null.");
|
||||
return live(id).resolve();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue