From edb8e7392853a3c7a4aa0e13519c3d0ec6c4e3b9 Mon Sep 17 00:00:00 2001 From: RZR-UA Date: Fri, 6 Dec 2024 20:41:18 +0100 Subject: [PATCH] Add forgotten override fun write(str: String?) --- .../kotlin/net/osmand/shared/io/SinkStringWriter.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OsmAnd-shared/src/jvmMain/kotlin/net/osmand/shared/io/SinkStringWriter.kt b/OsmAnd-shared/src/jvmMain/kotlin/net/osmand/shared/io/SinkStringWriter.kt index 936d48743b2..5eefc167256 100644 --- a/OsmAnd-shared/src/jvmMain/kotlin/net/osmand/shared/io/SinkStringWriter.kt +++ b/OsmAnd-shared/src/jvmMain/kotlin/net/osmand/shared/io/SinkStringWriter.kt @@ -15,6 +15,13 @@ class SinkStringWriter(sink: Sink) : StringWriter() { bufferedSink.writeUtf8CodePoint(c) } + @Throws(IOException::class) + override fun write(str: String?) { + if (str != null) { + bufferedSink.writeUtf8(str) + } + } + @Throws(IOException::class) override fun write(cbuf: CharArray, off: Int, len: Int) { bufferedSink.writeUtf8(String(cbuf, off, len))