From fff1ae2d6e46fe047bf6a85a9dfaacc760979ed4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 16 Apr 2014 00:12:18 -0400 Subject: [PATCH] A3t - Fixed segfault caused by combined map lookup and method call. --- src/A3t.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/A3t.cpp b/src/A3t.cpp index 8923b3fa5..79b20e364 100644 --- a/src/A3t.cpp +++ b/src/A3t.cpp @@ -629,8 +629,13 @@ void A3t::findAttributeModifier () (*i)->attribute ("modifier", modifier); (*i)->attribute ("sense", sense); - if (context.columns[canonical]->modifiable ()) + std::map ::const_iterator col; + col = context.columns.find (canonical); + if (col != context.columns.end () && + col->second->modifiable ()) + { (*i)->tag ("MODIFIABLE"); + } } } }