Skip to content

Commit e0744e2

Browse files
committed
Handle null environ
1 parent 84ab8cd commit e0744e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/runtime-core/mingw/src/aws/smithy/kotlin/runtime/util/SystemDefaultProviderMingw.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public actual object SystemDefaultProvider : SystemDefaultProviderBase() {
1818

1919
actual override fun getAllEnvVars(): Map<String, String> = memScoped {
2020
generateSequence(0) { it + 1 }
21-
.map { idx -> environ.get(idx)?.toKString() }
21+
.map { idx -> environ?.get(idx)?.toKString() }
2222
.takeWhile { it != null }
2323
.associate { env ->
2424
val parts = env?.split("=", limit = 2)

0 commit comments

Comments
 (0)