Skip to content

Commit

Permalink
Require non null value from provider
Browse files Browse the repository at this point in the history
  • Loading branch information
kokosing committed Mar 28, 2017
1 parent f1a8e46 commit 5251efb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Lazy(Provider<T> provider)
public synchronized T get()
{
if (instance == null) {
instance = provider.get();
instance = requireNonNull(provider.get());
}
return instance;
}
Expand Down

0 comments on commit 5251efb

Please sign in to comment.