Title: NPE in AccessTokenRequestParams#addExtraParameters method · Issue #1082 · scribejava/scribejava · GitHub
Open Graph Title: NPE in AccessTokenRequestParams#addExtraParameters method · Issue #1082 · scribejava/scribejava
X Title: NPE in AccessTokenRequestParams#addExtraParameters method · Issue #1082 · scribejava/scribejava
Description: scribejava/scribejava-core/src/main/java/com/github/scribejava/core/oauth/AccessTokenRequestParams.java Line 45 in 8970e8e extraParameters = new HashMap<>(); The method throw NullPointerException each time that it call when the class var...
Open Graph Description: scribejava/scribejava-core/src/main/java/com/github/scribejava/core/oauth/AccessTokenRequestParams.java Line 45 in 8970e8e extraParameters = new HashMap<>(); The method throw NullPointerException e...
X Description: scribejava/scribejava-core/src/main/java/com/github/scribejava/core/oauth/AccessTokenRequestParams.java Line 45 in 8970e8e extraParameters = new HashMap<>(); The method throw NullPointerExcep...
Opengraph URL: https://github.com/scribejava/scribejava/issues/1082
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NPE in AccessTokenRequestParams#addExtraParameters method","articleBody":"https://github.com/scribejava/scribejava/blob/8970e8eeb0aff840d0b223890e9c392ee19218f7/scribejava-core/src/main/java/com/github/scribejava/core/oauth/AccessTokenRequestParams.java#L45\n\nThe method throw NullPointerException each time that it call when the class variable `extraParameters` is null because the initialisation is done for the parameter variable and not for the class variable with the same name. The `this.` is missing.\n\n\n```\n public AccessTokenRequestParams addExtraParameters(Map\u003cString, String\u003e extraParameters) {\n if (extraParameters == null || extraParameters.isEmpty()) {\n return this;\n }\n if (this.extraParameters == null) {\n extraParameters = new HashMap\u003c\u003e(); // Error\n }\n this.extraParameters.putAll(extraParameters);\n return this;\n }\n```\n\nIt should be :\n```\n if (this.extraParameters == null) {\n this.extraParameters = new HashMap\u003c\u003e();\n }\n```","author":{"url":"https://github.com/NathalieGprog","@type":"Person","name":"NathalieGprog"},"datePublished":"2025-04-18T13:40:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1082/scribejava/issues/1082"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2696f2de-9101-cb4b-04fa-8ed03cfc8d9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE58:1AB11E:6B978F:908426:6972E6FB |
| html-safe-nonce | 2f4223b63085bb1bc0eec187a87e846c7ace44d8f6909205833204ddda8ef5d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTU4OjFBQjExRTo2Qjk3OEY6OTA4NDI2OjY5NzJFNkZCIiwidmlzaXRvcl9pZCI6IjkwMjk1NDQ5NDA1NTkwNjY4NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7510f25c7c1793ad06e18da7419f77151918162a1b2a76d40de7fd9ba477579d |
| hovercard-subject-tag | issue:3004986362 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scribejava/scribejava/1082/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c1725b911bd0f91f9c437ad6736037a889a4dff85ceefcf646037ff115121327/scribejava/scribejava/issues/1082 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1725b911bd0f91f9c437ad6736037a889a4dff85ceefcf646037ff115121327/scribejava/scribejava/issues/1082 |
| og:image:alt | scribejava/scribejava-core/src/main/java/com/github/scribejava/core/oauth/AccessTokenRequestParams.java Line 45 in 8970e8e extraParameters = new HashMap<>(); The method throw NullPointerException e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NathalieGprog |
| hostname | github.com |
| expected-hostname | github.com |
| None | 824b30a290fe1f3775d1c3b755ace6ec71165752363f95d9255c1b87220040e4 |
| turbo-cache-control | no-preview |
| go-import | github.com/scribejava/scribejava git https://github.com/scribejava/scribejava.git |
| octolytics-dimension-user_id | 15140551 |
| octolytics-dimension-user_login | scribejava |
| octolytics-dimension-repository_id | 889932 |
| octolytics-dimension-repository_nwo | scribejava/scribejava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 889932 |
| octolytics-dimension-repository_network_root_nwo | scribejava/scribejava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ef892904a22cef6ce15e4347cbf70e4cbfdc883 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width