Closed frmz closed 5 years ago
If the env var is not there the call to System.getEnv is not null safe and doesnt return null
private fun getEnvVar(propertyName: String): Long? { return System.getenv(propertyName).replace(".", "_").toLongOrNull() }
Should be
private fun getEnvVar(propertyName: String): Long? { return System.getenv(propertyName)?.replace(".", "_")?.toLongOrNull() }
Thanks for the feedback. It's fixed in v1.1.9
If the env var is not there the call to System.getEnv is not null safe and doesnt return null
Should be