summaryrefslogtreecommitdiff
path: root/project2/sql/sqlWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/sql/sqlWriter.cpp')
-rw-r--r--project2/sql/sqlWriter.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/project2/sql/sqlWriter.cpp b/project2/sql/sqlWriter.cpp
index 867e1bd..f67eb1c 100644
--- a/project2/sql/sqlWriter.cpp
+++ b/project2/sql/sqlWriter.cpp
@@ -35,9 +35,11 @@ appendNewFromNode(DynamicSql::Writers * w, DynamicSql::SqlCommand::Filters * fs,
DynamicSql::SqlCommand::SqlCommand(ScriptNodePtr s)
{
- s->composeWithCallbacks(
- boost::bind(&appendNew<SqlText, Glib::ustring>, &writers, _1),
- boost::bind(&appendNewFromNode, &writers, &filters, _1));
+ if (s) {
+ s->composeWithCallbacks(
+ boost::bind(&appendNew<SqlText, Glib::ustring>, &writers, _1),
+ boost::bind(&appendNewFromNode, &writers, &filters, _1));
+ }
}
Glib::ustring