Ktorfit
Ktorfit copied to clipboard
Form fields: Unnecessary safe call on a non-null receiver of type String
Ktorfit version
1.7.0
What happened and how can we reproduce this issue?
Code generated for form fields what are non-null have null safe access resulting in these warnings in build logs. Granted they are harmless, it just creates a lot of noise in build outputs and in both Android Studio and Xcode.
What did you expect to happen?
Access non null variables without null safe calls so the warnings disappear.
Is there anything else we need to know about?
No response
Hi, with Ktorfit 1.9.1 the warnings are suppressed. It's still planned to optimize the code, but that will come later.
Thanks very much @Foso, can confirm no warnings on 1.9.1 😄