Commit c91da393 authored by Luna Riegel's avatar Luna Riegel
Browse files

Fix: Use correct error collection function

parent abd380e2
...@@ -98,7 +98,7 @@ public class DatabaseHandler { ...@@ -98,7 +98,7 @@ public class DatabaseHandler {
ps.setString(1, co.getGmlId().toString()); ps.setString(1, co.getGmlId().toString());
String bbox = BoundingBox.of(co).to2DWkt(); String bbox = BoundingBox.of(co).to2DWkt();
ps.setString(2, bbox); ps.setString(2, bbox);
ps.setBoolean(4, co.hasAnyError()); ps.setBoolean(4, co.containsAnyError());
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
logger.debug("Attempting to serialize CityObject: {} ", co); logger.debug("Attempting to serialize CityObject: {} ", co);
...@@ -135,7 +135,7 @@ public class DatabaseHandler { ...@@ -135,7 +135,7 @@ public class DatabaseHandler {
if (logger.isTraceEnabled()) { if (logger.isTraceEnabled()) {
logger.trace("Attempting to serialize CityObject: {} ", co); logger.trace("Attempting to serialize CityObject: {} ", co);
} }
ps.setBoolean(4, co.hasAnyError()); ps.setBoolean(4, co.containsAnyError());
try { try {
byte[] bytes = SerializationUtils.serialize(co); byte[] bytes = SerializationUtils.serialize(co);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment