File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
jetbrains-core/src/software/aws/toolkits/jetbrains/services/caws/envclient Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
8
8
import com.fasterxml.jackson.module.kotlin.readValue
9
9
import com.intellij.openapi.Disposable
10
10
import com.intellij.openapi.components.service
11
+ import com.intellij.util.text.nullize
11
12
import org.apache.http.client.methods.CloseableHttpResponse
12
13
import org.apache.http.client.methods.HttpGet
13
14
import org.apache.http.client.methods.HttpPost
@@ -30,7 +31,7 @@ import software.aws.toolkits.jetbrains.utils.notifyError
30
31
import software.aws.toolkits.resources.message
31
32
32
33
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 ,
34
35
private val httpClient : CloseableHttpClient = HttpClientBuilder .create().build()
35
36
) : Disposable {
36
37
private val objectMapper = jacksonObjectMapper().also {
You can’t perform that action at this time.
0 commit comments