We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JSONObject["scopes"] is not a JSONArray
1 parent 2bdb3eb commit 5746b22Copy full SHA for 5746b22
src/main/java/org/mushare/pluto/PlutoUser.java
@@ -32,7 +32,7 @@ public PlutoUser(JSONObject payload) {
32
userId = payload.getLong("userId");
33
deviceId = payload.getString("deviceId");
34
scopes = new ArrayList<>();
35
- if (payload.containsKey("scopes")) {
+ if (payload.containsKey("scopes") && payload.get("scopes") != null) {
36
JSONArray scopeArray = payload.getJSONArray("scopes");
37
for (int i = 0; i < scopeArray.size(); i++) {
38
scopes.add(scopeArray.getString(i));
0 commit comments