mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-10 07:18:33 +00:00
Crash early when using a null RecipientId.
This commit is contained in:
parent
b3c7c8db5c
commit
5b755b9501
@ -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…
x
Reference in New Issue
Block a user