icerockdev / moko-network

Network components with codegeneration of rest api for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
151 stars 29 forks source link

NullPointerException when trying parse date in not same format #32

Closed DevTchernov closed 3 years ago

DevTchernov commented 4 years ago

Caused by force cast: https://github.com/icerockdev/moko-network/blob/master/network/src/iosMain/kotlin/dev/icerock/moko/network/GMTDateExt.kt#L20

Alex009 commented 4 years ago

@DevTchernov what behaviour is expected in this case? passed format not correct, so if we throw some IllegalFormatException - it will be expected?

Alex009 commented 3 years ago

will be in 0.11.0