DitchOoM / buffer

Kotlin Multiplatform bytebuffer/byte[] wrapper
Apache License 2.0
63 stars 5 forks source link

avoid crashing on apple when an empty string is passed in to `String.toReadBuffer` #42

Closed thebehera closed 1 year ago

thebehera commented 1 year ago

for some odd reason, apple platforms are crashing with a NPE when passing an empty string. This avoids that issue by simply returning an empty buffer