Closed wularr closed 1 week ago
This line: https://github.com/aws/aws-toolkit-jetbrains/blob/main/plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/credentials/sso/SsoAccessTokenProvider.kt#L409 could fail if e.awsErrorDetails() returns null. Kotlin can't catch the typing error because AwsServiceException is defined in java.
e.awsErrorDetails()
https://github.com/aws/aws-toolkit-jetbrains/issues/4609 https://github.com/aws/aws-toolkit-jetbrains/issues/4610
I confirm that my contribution is made under the terms of the Apache 2.0 license.
/retryBuild
Issues 1 New issue 0 Accepted issues
Measures 0 Security Hotspots 0.0% Coverage on New Code 0.0% Duplication on New Code
See analysis details on SonarCloud
Types of changes
Description
This line: https://github.com/aws/aws-toolkit-jetbrains/blob/main/plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/credentials/sso/SsoAccessTokenProvider.kt#L409 could fail if
e.awsErrorDetails()
returns null. Kotlin can't catch the typing error because AwsServiceException is defined in java.https://github.com/aws/aws-toolkit-jetbrains/issues/4609 https://github.com/aws/aws-toolkit-jetbrains/issues/4610
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.