Merge branch 'Issue-1643'
* Issue-1643: Fix pydoc null pointer dereference with missing arg type
This commit is contained in:
commit
aa59c81205
4 changed files with 35 additions and 5 deletions
|
|
@ -434,11 +434,10 @@ std::string PyDocConverter::getParamType(std::string param) {
|
|||
ParmList *plist = CopyParmList(Getattr(currentNode, "parms"));
|
||||
for (Parm *p = plist; p; p = nextSibling(p)) {
|
||||
String *pname = Getattr(p, "name");
|
||||
if (Char(pname) != param)
|
||||
continue;
|
||||
|
||||
type = getPyDocType(p, pname);
|
||||
break;
|
||||
if (pname && Char(pname) == param) {
|
||||
type = getPyDocType(p, pname);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Delete(plist);
|
||||
return type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue