ui: Show explicit error message if no java path provided in preferences

This commit is contained in:
mlangkabel
2018-10-30 12:30:32 +01:00
parent d12570ccf9
commit 73cf651664
@@ -29,6 +29,13 @@ void JavaEnvironmentFactory::createInstance(std::string classPath, std::string&
std::function<jint (JavaVM**, void**, void*)> createInstanceFunction;
const FilePath javaPath = ApplicationSettings::getInstance()->getJavaPath();
if (javaPath.empty())
{
errorString = "No Java Path provided in preferences.";
return;
}
createInstanceFunction = utility::loadFunctionFromLibrary<jint, JavaVM**, void**, void*>(
javaPath,
"JNI_CreateJavaVM",