summaryrefslogtreecommitdiff
path: root/Source/Doxygen/pydoc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Doxygen/pydoc.cxx')
-rw-r--r--Source/Doxygen/pydoc.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Doxygen/pydoc.cxx b/Source/Doxygen/pydoc.cxx
index f2031f481..9f00d5548 100644
--- a/Source/Doxygen/pydoc.cxx
+++ b/Source/Doxygen/pydoc.cxx
@@ -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;