summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-06-30 18:06:28 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-06-30 18:06:28 (GMT)
commitf7e90abb5cdcb69a618505177683e9ac74a2bdb8 (patch)
tree5a2f0d14c9b3a32f16e2af80fe385ffdc91afae9
parent039f53bb7a3f1c3dfdf03f120437f2daef454fb3 (diff)
downloadDoxygen-f7e90abb5cdcb69a618505177683e9ac74a2bdb8.zip
Doxygen-f7e90abb5cdcb69a618505177683e9ac74a2bdb8.tar.gz
Doxygen-f7e90abb5cdcb69a618505177683e9ac74a2bdb8.tar.bz2
Fix for NULL pointer access problem
-rw-r--r--src/util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 976e423..500b1af 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -512,7 +512,8 @@ ClassDef *newResolveTypedef(FileDef *fileScope,MemberDef *md,
ClassDef *typeClass = md->getClassDef();
QCString type = md->typeString(); // get the "value" of the typedef
- if (typeClass && typeClass->isTemplate() && actTemplParams->count()>0)
+ if (typeClass && typeClass->isTemplate() &&
+ actTemplParams && actTemplParams->count()>0)
{
type = substituteTemplateArgumentsInString(type,
typeClass->templateArguments(),actTemplParams);