Skip to content

Commit abc2de4

Browse files
committed
- fixes linting issue on null annotations
1 parent ccf2821 commit abc2de4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/main/java/com/microsoft/graph/core/BaseClient.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,10 @@ public Builder<httpClientType> authenticationProvider(@Nonnull final ICoreAuthen
234234
* if there was an exception creating the client
235235
*/
236236
@Nonnull
237-
protected <ClientType extends BaseClient> ClientType buildClient(ClientType instance) throws ClientException {
237+
protected <ClientType extends BaseClient> ClientType buildClient(@Nonnull ClientType instance) throws ClientException {
238+
if(instance == null) {
239+
throw new IllegalArgumentException("The instance cannot be null");
240+
}
238241
instance.setHttpProvider(this.getHttpProvider());
239242
instance.setLogger(this.getLogger());
240243
instance.setSerializer(this.getSerializer());

0 commit comments

Comments
 (0)