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

ofz#2289 catch bad storage exception

Change-Id: I51b44a49eb05da0bf89ae2db7b5f2d4647c3ee87
üst 4c1d68ca
......@@ -6178,7 +6178,16 @@ bool SAL_CALL TestImportDOC(SvStream &rStream, const OUString &rFltName)
pReader->pStrm = &rStream;
if (rFltName != "WW6")
{
xStorage = tools::SvRef<SotStorage>(new SotStorage(rStream));
try
{
xStorage = tools::SvRef<SotStorage>(new SotStorage(rStream));
if (xStorage->GetError())
return false;
}
catch (...)
{
return false;
}
pReader->pStg = xStorage.get();
}
pReader->SetFltName(rFltName);
......
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