<https://github.com/OtakuSenpai/AghoraBot/blob/mas...
# ktor
o
https://github.com/OtakuSenpai/AghoraBot/blob/master/src/main/kotlin/com/otakusenpai/aghora/connection/BasicConnection.kt#L103 This function call fails for a certain message due to null being sent by the server. How can I navigate the null being given out and return a normal "" or empty string ans the return parameter?
val foo = input.readASCIILine() data = if(foo == null) "" else foo as String if(data == null) { data = "" } This is what I tried so far. But it doesnt work.
h
are you sure you want to put your password right on main 😜
d
What about
input.readASCIILine() ?: “”
?