Skip to content

Commit

Permalink
Add more error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Melchior committed Oct 9, 2023
1 parent a5a0dd3 commit 9003e12
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ protected PushImpl(OsPush osPush) {
}

User(OsSyncUser osUser, App app) {
if (osUser == null) {
throw new IllegalStateException("Non-null user required.");
}
this.osUser = osUser;
this.app = app;
this.profile = new UserProfile(this);
Expand Down

0 comments on commit 9003e12

Please sign in to comment.