diff --git a/network/cnvts/nsNetConverterStream.cpp b/network/cnvts/nsNetConverterStream.cpp index 2011f4b2134d..26c862acf47d 100644 --- a/network/cnvts/nsNetConverterStream.cpp +++ b/network/cnvts/nsNetConverterStream.cpp @@ -47,8 +47,10 @@ NS_IMPL_RELEASE(nsNetConverterStream); nsresult nsNetConverterStream :: QueryInterface(const nsIID& aIID, void** aInstancePtrResult) { - if (nsnull == aInstancePtrResult) + if (!aInstancePtrResult) + { return NS_ERROR_NULL_POINTER; + } if (aIID.Equals(kISupportsIID)) {