diff --git a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp index d5607d04e33..19b8c48524a 100644 --- a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -1119,7 +1119,7 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIChannel* channel, char* urlString; nsCOMPtr localFile; nsresult rv = channel->GetLocalFile(getter_AddRefs(localFile)); - if (NS_SUCCEEDED(rv)) + if (NS_SUCCEEDED(rv) && localFile) { char* pathAndFilename; rv = localFile->GetPath(&pathAndFilename); diff --git a/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp b/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp index d5607d04e33..19b8c48524a 100644 --- a/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp +++ b/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp @@ -1119,7 +1119,7 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIChannel* channel, char* urlString; nsCOMPtr localFile; nsresult rv = channel->GetLocalFile(getter_AddRefs(localFile)); - if (NS_SUCCEEDED(rv)) + if (NS_SUCCEEDED(rv) && localFile) { char* pathAndFilename; rv = localFile->GetPath(&pathAndFilename);