[Libreoffice-commits] core.git: sd/source
Caolán McNamara
caolanm at redhat.com
Sun Jul 23 18:41:29 UTC 2017
sd/source/filter/grf/sdgrffilter.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5924ac060d320b38133f2629d07ee08c41aae368
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Jul 23 19:40:31 2017 +0100
coverity#1415613 Explicit null dereferenced
Change-Id: I000715d694acadb7b8772e6220d540b91f4451bf
diff --git a/sd/source/filter/grf/sdgrffilter.cxx b/sd/source/filter/grf/sdgrffilter.cxx
index 765b9e3a9f4c..040f70e07b6d 100644
--- a/sd/source/filter/grf/sdgrffilter.cxx
+++ b/sd/source/filter/grf/sdgrffilter.cxx
@@ -152,7 +152,7 @@ void SdGRFFilter::HandleGraphicFilterError( ErrCode nFilterError, ErrCode nStrea
ErrorHandler::HandleError( ERRCODE_IO_GENERAL );
else
{
- ScopedVclPtrInstance< MessageDialog > aErrorBox(nullptr, SdResId(pId));
+ ScopedVclPtrInstance< MessageDialog > aErrorBox(nullptr, pId ? SdResId(pId) : OUString());
aErrorBox->Execute();
}
}
More information about the Libreoffice-commits
mailing list