From f81e62f45e72f1ec9a7d4aa4eb736bfddb64e104 Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Thu, 22 Jun 2000 22:36:37 +0000 Subject: [PATCH] Part of 23667 fix, r=nisheeth git-svn-id: svn://10.0.0.236/trunk@72968 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp | 2 +- mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);