зеркало из https://github.com/mozilla/pjs.git
null check. NOT PART OF THE BUILD
This commit is contained in:
Родитель
ea3ac0069f
Коммит
86f046b6a8
|
@ -570,6 +570,9 @@ nsScriptableInterfaceInfo::Init(const nsIID * aIID)
|
|||
if(mInfo)
|
||||
return NS_ERROR_ALREADY_INITIALIZED;
|
||||
|
||||
if(!aIID)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
return FindInfo(IIDTester, aIID, getter_AddRefs(mInfo));
|
||||
}
|
||||
|
||||
|
@ -580,6 +583,9 @@ nsScriptableInterfaceInfo::InitWithName(const char *name)
|
|||
if(mInfo)
|
||||
return NS_ERROR_ALREADY_INITIALIZED;
|
||||
|
||||
if(!name)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
return FindInfo(NameTester, name, getter_AddRefs(mInfo));
|
||||
}
|
||||
|
||||
|
|
|
@ -570,6 +570,9 @@ nsScriptableInterfaceInfo::Init(const nsIID * aIID)
|
|||
if(mInfo)
|
||||
return NS_ERROR_ALREADY_INITIALIZED;
|
||||
|
||||
if(!aIID)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
return FindInfo(IIDTester, aIID, getter_AddRefs(mInfo));
|
||||
}
|
||||
|
||||
|
@ -580,6 +583,9 @@ nsScriptableInterfaceInfo::InitWithName(const char *name)
|
|||
if(mInfo)
|
||||
return NS_ERROR_ALREADY_INITIALIZED;
|
||||
|
||||
if(!name)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
return FindInfo(NameTester, name, getter_AddRefs(mInfo));
|
||||
}
|
||||
|
||||
|
|
|
@ -570,6 +570,9 @@ nsScriptableInterfaceInfo::Init(const nsIID * aIID)
|
|||
if(mInfo)
|
||||
return NS_ERROR_ALREADY_INITIALIZED;
|
||||
|
||||
if(!aIID)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
return FindInfo(IIDTester, aIID, getter_AddRefs(mInfo));
|
||||
}
|
||||
|
||||
|
@ -580,6 +583,9 @@ nsScriptableInterfaceInfo::InitWithName(const char *name)
|
|||
if(mInfo)
|
||||
return NS_ERROR_ALREADY_INITIALIZED;
|
||||
|
||||
if(!name)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
return FindInfo(NameTester, name, getter_AddRefs(mInfo));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче