Skip to content

Commit 856a9d1

Browse files
authored
fix NPE in SdkTypeUtils (#5301)
1 parent e8e3fca commit 856a9d1

File tree

1 file changed

+1
-1
lines changed
  • migration-tool/src/main/java/software/amazon/awssdk/migration/internal/utils

1 file changed

+1
-1
lines changed

migration-tool/src/main/java/software/amazon/awssdk/migration/internal/utils/SdkTypeUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static boolean isV2ClientBuilder(JavaType type) {
137137
}
138138

139139
public static boolean isEligibleToConvertToBuilder(JavaType.FullyQualified type) {
140-
return isV2ModelClass(type) || isV2ClientClass(type) || isV2CoreClassesWithBuilder(type.getFullyQualifiedName());
140+
return type != null && (isV2ModelClass(type) || isV2ClientClass(type) || isV2CoreClassesWithBuilder(type.getFullyQualifiedName()));
141141
}
142142

143143
public static boolean isEligibleToConvertToStaticFactory(JavaType.FullyQualified type) {

0 commit comments

Comments
 (0)