Skip to content

Commit 066b5b6

Browse files
authored
Update CawsEnvironmentClient.kt
1 parent d234522 commit 066b5b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/services/caws/envclient/CawsEnvironmentClient.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
88
import com.fasterxml.jackson.module.kotlin.readValue
99
import com.intellij.openapi.Disposable
1010
import com.intellij.openapi.components.service
11+
import com.intellij.util.text.nullize
1112
import org.apache.http.client.methods.CloseableHttpResponse
1213
import org.apache.http.client.methods.HttpGet
1314
import org.apache.http.client.methods.HttpPost
@@ -30,7 +31,7 @@ import software.aws.toolkits.jetbrains.utils.notifyError
3031
import software.aws.toolkits.resources.message
3132

3233
class CawsEnvironmentClient(
33-
private val endpoint: String = System.getenv(CawsConstants.CAWS_ENV_AUTH_TOKEN_VAR) ?: CawsConstants.DEFAULT_CAWS_ENV_API_ENDPOINT,
34+
private val endpoint: String = System.getenv(CawsConstants.CAWS_ENV_AUTH_TOKEN_VAR).nullize(true) ?: CawsConstants.DEFAULT_CAWS_ENV_API_ENDPOINT,
3435
private val httpClient: CloseableHttpClient = HttpClientBuilder.create().build()
3536
) : Disposable {
3637
private val objectMapper = jacksonObjectMapper().also {

0 commit comments

Comments
 (0)