if (!aInstancePtr) return NS_ERROR_NULL_POINTER;
if (NULL == aInstancePtr) { return NS_ERROR_NULL_POINTER; }
nsHTMLOptionCollection::QueryInterface(REFNSIID aIID, void** aInstancePtr){  if (!aInstancePtr) return NS_ERROR_NULL_POINTER;  if (aIID.Equals(kIJSScriptObjectIID)) {    *aInstancePtr = (void*)(nsIJSScriptObject*) this;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kIDOMNSHTMLOptionCollectionIID)) {    *aInstancePtr = (void*)(nsIDOMNSHTMLOptionCollection*)this;    NS_ADDREF_THIS();    return NS_OK;  }  return nsGenericDOMHTMLCollection::QueryInterface(aIID, aInstancePtr);}