mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
classlib: fix support of null string in System.out/err streams
This commit is contained in:
parent
199032d48a
commit
8dd344412e
|
@ -22,6 +22,9 @@ import org.teavm.jso.JSBody;
|
|||
public class JSStdoutPrintStream extends JsConsolePrintStream {
|
||||
@Override
|
||||
public void print(String s) {
|
||||
if (s == null) {
|
||||
s = "null";
|
||||
}
|
||||
if (PlatformDetector.isWebAssemblyGC()) {
|
||||
for (int i = 0; i < s.length(); ++i) {
|
||||
WasmGCSupport.putCharStdout(s.charAt(i));
|
||||
|
|
Loading…
Reference in New Issue
Block a user