hxcpp icon indicating copy to clipboard operation
hxcpp copied to clipboard

Sys.println(null) causes a segmentation fault

Open tobil4sk opened this issue 4 years ago • 0 comments

As said in the title, trying to do Sys.println(null) results in a segmentation fault. From having a look through the code, it seems that from Dynamic it goes straight to hx::String, which is able to have the value null. However. after that there is no check whether the string is null before trying to print it out.

This issue might be somewhat relevant: https://github.com/HaxeFoundation/haxe/issues/9588

EDIT: This is does not seem to be an issue on Windows.

tobil4sk avatar Sep 23 '21 16:09 tobil4sk