tdf#134167: jfw_plugin_getAllJavaInfos can successfully return empty list
Regression introduced with 6ba7415086
"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>
This commit is contained in:
committed by
Thorsten Behrens
parent
18b9f927a0
commit
642fc41cd7
@@ -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]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user