summaryrefslogtreecommitdiff
path: root/src/expr/expr_template.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/expr_template.cpp')
-rw-r--r--src/expr/expr_template.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr/expr_template.cpp b/src/expr/expr_template.cpp
index 29aa1a737..3c376f632 100644
--- a/src/expr/expr_template.cpp
+++ b/src/expr/expr_template.cpp
@@ -206,6 +206,7 @@ Expr Expr::getOperator() const {
Type Expr::getType(bool check) const throw (TypeCheckingException) {
ExprManagerScope ems(*this);
Assert(d_node != NULL, "Unexpected NULL expression pointer!");
+ CheckArgument(!d_node->isNull(), this, "Can't get type of null expression!");
return d_exprManager->getType(*this, check);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback