Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/jato.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/vm/jato.c b/vm/jato.c index 6086290..e3163bd 100644 --- a/vm/jato.c +++ b/vm/jato.c @@ -371,6 +371,12 @@ native_vmfile_is_directory(struct vm_object *dirpath) char *dirpath_str; struct stat buf; + if (!dirpath) { + signal_new_exception(vm_java_lang_NullPointerException, NULL); + throw_from_native(sizeof(dirpath)); + return false; + } + dirpath_str = vm_string_to_cstr(dirpath); if (!dirpath_str) return false; -- 1.6.0.6 ------------------------------------------------------------------------------ _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel