Kaydet (Commit) a33d18c1 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#88237 crash without java but with nlp solver installed

Change-Id: Ifb451c299e4586a3a38c83a3111f3ac0b46d9315
üst 970b0ebb
......@@ -65,20 +65,27 @@ void ScSolverUtil::GetImplementations( uno::Sequence<OUString>& rImplNames,
OUString sName = xInfo->getImplementationName();
OUString sDescription;
uno::Reference<sheet::XSolver> xSolver(
xCFac->createInstanceWithContext(xCtx), uno::UNO_QUERY );
uno::Reference<sheet::XSolverDescription> xDesc( xSolver, uno::UNO_QUERY );
if ( xDesc.is() )
sDescription = xDesc->getComponentDescription();
if ( sDescription.isEmpty() )
sDescription = sName; // use implementation name if no description available
rImplNames.realloc( nCount+1 );
rImplNames[nCount] = sName;
rDescriptions.realloc( nCount+1 );
rDescriptions[nCount] = sDescription;
++nCount;
try
{
uno::Reference<sheet::XSolver> xSolver(
xCFac->createInstanceWithContext(xCtx), uno::UNO_QUERY );
uno::Reference<sheet::XSolverDescription> xDesc( xSolver, uno::UNO_QUERY );
if ( xDesc.is() )
sDescription = xDesc->getComponentDescription();
if ( sDescription.isEmpty() )
sDescription = sName; // use implementation name if no description available
rImplNames.realloc( nCount+1 );
rImplNames[nCount] = sName;
rDescriptions.realloc( nCount+1 );
rDescriptions[nCount] = sDescription;
++nCount;
}
catch (const css::uno::Exception& e)
{
SAL_INFO("sc", "ScSolverUtil::GetImplementations: cannot instantiate: " << sName << ", because: " << e.Message);
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment