Kaydet (Commit) 6e0a080e authored tarafından Noel Grandin's avatar Noel Grandin

cid#705006 dereference after null check

no point in checking pDoc for null here, since we've already
dereferenced it earlier

Change-Id: If2d0268851654cb760458e6e138f0c92877adb8a
üst c35d7018
...@@ -572,7 +572,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertOOoLink( ...@@ -572,7 +572,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertOOoLink(
uno::Sequence< beans::PropertyValue > aMediaDescriptor( 1 ); uno::Sequence< beans::PropertyValue > aMediaDescriptor( 1 );
aMediaDescriptor[0].Name = "URL"; aMediaDescriptor[0].Name = "URL";
aMediaDescriptor[0].Value <<= OUString( aURLObj.GetMainURL( INetURLObject::NO_DECODE ) ); aMediaDescriptor[0].Value <<= OUString( aURLObj.GetMainURL( INetURLObject::NO_DECODE ) );
if ( pDoc && pDoc->GetDocShell() && pDoc->GetDocShell()->GetMedium() ) if ( pDoc->GetDocShell() && pDoc->GetDocShell()->GetMedium() )
{ {
uno::Reference< task::XInteractionHandler > xInteraction = uno::Reference< task::XInteractionHandler > xInteraction =
pDoc->GetDocShell()->GetMedium()->GetInteractionHandler(); pDoc->GetDocShell()->GetMedium()->GetInteractionHandler();
......
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