Skip to content

Commit 0ab3dac

Browse files
committed
Fix for NPE when is_serverless is not provided by user
1 parent 25888d8 commit 0ab3dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/amazon/redshift/core/IamHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static RedshiftProperties setIAMProperties(RedshiftProperties info, Redsh
123123

124124
String host = RedshiftConnectionImpl.getOptionalConnSetting(RedshiftProperty.HOST.getName(), info);
125125
String userSetServerless = RedshiftConnectionImpl.getOptionalConnSetting(RedshiftProperty.IS_SERVERLESS.getName(), info);
126-
Boolean hasUserSetServerless = userSetServerless.equalsIgnoreCase("true");
126+
Boolean hasUserSetServerless = "true".equalsIgnoreCase(userSetServerless);
127127
String acctId = null;
128128
String workGroup = null;
129129

0 commit comments

Comments
 (0)