diff --git a/mozilla/editor/composer/src/nsComposerCommands.cpp b/mozilla/editor/composer/src/nsComposerCommands.cpp index 675b10d2a98..32877cb3be1 100644 --- a/mozilla/editor/composer/src/nsComposerCommands.cpp +++ b/mozilla/editor/composer/src/nsComposerCommands.cpp @@ -1806,6 +1806,11 @@ PasteAsQuotation(nsIEditor *aEditor, PRInt32 aSelectionType) nsresult GetListState(nsIEditor *aEditor, PRBool *aMixed, PRUnichar **_retval) { + if (!aMixed || !_retval || !aEditor) + return NS_ERROR_NULL_POINTER; + *_retval = nsnull; + *aMixed = PR_FALSE; + nsCOMPtr htmlEditor = do_QueryInterface(aEditor); nsresult err = NS_ERROR_NO_INTERFACE; if (htmlEditor)