export null nodes (fixes a bug in portfolio model stuff)
authorKshitij Bansal <kshitij@cs.nyu.edu>
Fri, 9 Nov 2012 21:11:47 +0000 (21:11 +0000)
committerKshitij Bansal <kshitij@cs.nyu.edu>
Fri, 9 Nov 2012 21:11:47 +0000 (21:11 +0000)
src/expr/expr_template.cpp

index 65a671b773e402772304bebabf8ace712d4e7b86..bc7f0f47cf8839b8f197e810cdd16fc1bd74705b 100644 (file)
@@ -112,6 +112,7 @@ namespace expr {
 static Node exportConstant(TNode n, NodeManager* to);
 
 Node exportInternal(TNode n, ExprManager* from, ExprManager* to, ExprManagerMapCollection& vmap) {
+  if(n.isNull()) return Node::null();
   if(theory::kindToTheoryId(n.getKind()) == theory::THEORY_DATATYPES) {
     throw ExportUnsupportedException
        ("export of node belonging to theory of DATATYPES kinds unsupported");