Resolve #9435 - don't crash for ByteBuffer byte errors

This commit is contained in:
Yair Morgenstern 2023-05-23 19:29:06 +03:00
parent b3166c4922
commit 472bb55b40

View File

@ -262,7 +262,7 @@ object Github {
val byteArray = file.readBytes()
val buffer = ByteBuffer.allocateDirect(byteArray.size).put(byteArray).position(0)
return Pixmap(buffer)
} catch (ex: Exception) {
} catch (_: Throwable) {
return null
}
}