From 956cf8647cb54a930d1d9c65fb01cc4d9498f2bd Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 30 Jun 2008 18:06:28 +0000 Subject: Fix for NULL pointer access problem --- src/util.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v0.12