Signed-off-by: Tomek Grabiec <[email protected]>
---
vm/jato.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/vm/jato.c b/vm/jato.c
index ef4b2e2..02f060d 100644
--- a/vm/jato.c
+++ b/vm/jato.c
@@ -213,6 +213,12 @@ native_vmruntime_native_load(struct vm_object *name,
static void native_vmruntime_println(struct vm_object *message)
{
+ if (!message) {
+ signal_new_exception(vm_java_lang_NullPointerException, NULL);
+ throw_from_native(sizeof(struct vm_object));
+ return;
+ }
+
char *cstr = vm_string_to_cstr(message);
if (cstr)
--
1.6.0.6
------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel