summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-21 23:34:31 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-06-22 01:21:44 +0200
commit642fc41cd7d080384658e10b30bb9d3b38a2cbd9 (patch)
tree61d31738ed1bb802e66d77f2b46e1838aaa93be6 /jvmfwk
parent18b9f927a00b1cafecd450bbe276bbbfe009b7f3 (diff)
tdf#134167: jfw_plugin_getAllJavaInfos can successfully return empty list
Regression introduced with 6ba74150866d71469827de9f4f19268dfa7db137 "jfw::isAccessibilitySupportDesired is obsolete" Change-Id: I696f3240fa8760ae156ac3b8b1fd1fe42f81c539 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96821 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/source/framework.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/jvmfwk/source/framework.cxx b/jvmfwk/source/framework.cxx
index c253eec65426..2457ef3ee4c8 100644
--- a/jvmfwk/source/framework.cxx
+++ b/jvmfwk/source/framework.cxx
@@ -327,9 +327,8 @@ javaFrameworkError jfw_findAndSelectJRE(std::unique_ptr<JavaInfo> *pInfo)
& arInfos,
infos);
- if (plerr == javaPluginError::NONE)
+ if (plerr == javaPluginError::NONE && !arInfos.empty())
{
- assert(!arInfos.empty());
aCurrentInfo = std::move(arInfos[0]);
}