1
0
Fork 0

Fixed segfault when libbluray.jar not found

This commit is contained in:
hpi1 2010-12-19 15:24:50 +02:00
parent 07cd746a3b
commit 9de9627c5b
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ BDJAVA* bdj_open(const char *path, const char* start, void* bd, void* registers)
free(option);
free(classpath_opt);
if (result != JNI_OK) {
if (result != JNI_OK || !bdjava->env) {
free(bdjava);
DEBUG(DBG_BDJ | DBG_CRIT, "Failed to create new Java VM.\n");
return NULL;