Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.7k
Open
Description
Line 45 in8970e8e
extraParameters =newHashMap<>(); |
The method throw NullPointerException each time that it call when the class variableextraParameters
is null because the initialisation is done for the parameter variable and not for the class variable with the same name. Thethis.
is missing.
public AccessTokenRequestParams addExtraParameters(Map<String, String> extraParameters) { if (extraParameters == null || extraParameters.isEmpty()) { return this; } if (this.extraParameters == null) { extraParameters = new HashMap<>(); // Error } this.extraParameters.putAll(extraParameters); return this; }
It should be :
if (this.extraParameters == null) { this.extraParameters = new HashMap<>(); }
Metadata
Metadata
Assignees
Labels
No labels