NPE when calling hashCode() on wildcard DynamoDB EnhancedType #5890
Labels
bug
This issue is a bug.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
p2
This is a standard priority issue
Describe the bug
When a DynamoDB EnhancedType is created for a wildcard type or a generic type having wildcard type parameters. Calling the hashCode() method on the EnhancedType results in a NullPointerException
Regression Issue
Expected Behavior
The hashCode is computed successfully
Current Behavior
java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "this.rawClass" is null
Reproduction Steps
Possible Solution
Add a null check here
Additional Information/Context
No response
AWS Java SDK version used
2.26.20
JDK version used
openjdk version "17.0.12"
Operating System and version
macOS Sonoma 14.5
The text was updated successfully, but these errors were encountered: