aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/oracle/traits.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/oracle/traits.cxx b/odb/oracle/traits.cxx
index 3488398..35a3c6c 100644
--- a/odb/oracle/traits.cxx
+++ b/odb/oracle/traits.cxx
@@ -147,7 +147,7 @@ namespace odb
*p = chunk_one;
*s = static_cast<ub4> (v.size ());
- *b = &v.front ();
+ *b = v.empty () ? 0 : &v.front ();
return true;
}
@@ -197,7 +197,7 @@ namespace odb
*p = chunk_one;
*s = static_cast<ub4> (v.size ());
- *b = &v.front ();
+ *b = v.empty () ? 0 : &v.front ();
return true;
}