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: patch-diff.githubusercontent.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:0bd7e7bc-6edd-9eff-e0bc-39707714cae8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 966A:17C51:385F6B4:4CFC9F8:6972CAD2 |
| html-safe-nonce | 684fd2444bc2f220045b1dc70d3fc9606af9495dad9ac00c9585bfba8431d288 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjZBOjE3QzUxOjM4NUY2QjQ6NENGQzlGODo2OTcyQ0FEMiIsInZpc2l0b3JfaWQiOiI2NjkzMjI0OTgwODUxOTAzMTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e7d5cf8f751cdd787dccb06e2c9b48ac1dc0c53755d34f7b462f39fd2f6c1e1c |
| 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 | e5abb0753dbd4190d15d366a819b0ca85f68a7e5bbe3d32213b346c41685c80a |
| 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 | 88896109b054799a7f22afaeee541d00f9170dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width