diff options
Diffstat (limited to 'src/template.cpp')
-rw-r--r-- | src/template.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/template.cpp b/src/template.cpp index 58188fe..d5e8275 100644 --- a/src/template.cpp +++ b/src/template.cpp @@ -2669,7 +2669,10 @@ void TemplateContextImpl::addIndexEntry(const QCString &indexName,const std::vec if (list->count()>0) { TemplateStruct *lastEntry = dynamic_cast<TemplateStruct*>(list->at(list->count()-1).toStruct()); - lastEntry->set("last",false); + if (lastEntry) + { + lastEntry->set("last",false); + } } entry->set("is_leaf_node",true); entry->set("first",list->count()==0); |