changeset 1007:ed918497873b

Datacage: Fixed two NPEs flys-artifacts/trunk@2450 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 02 Aug 2011 13:03:06 +0000 (2011-08-02)
parents 1917f32701dc
children 6268009e177d
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Aug 02 11:38:20 2011 +0000
+++ b/flys-artifacts/ChangeLog	Tue Aug 02 13:03:06 2011 +0000
@@ -1,3 +1,8 @@
+2011-08-02  Sascha L. Teichmann <sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java:
+	  Fixed two NPEs.
+
 2011-08-02  Sascha L. Teichmann <sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/datacage/DatacageBackendListener.java,
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java	Tue Aug 02 11:38:20 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java	Tue Aug 02 13:03:06 2011 +0000
@@ -374,7 +374,7 @@
             sql.get(SQL_DELETE_OUTS_BY_ARTIFACT_ID);
         SQL_DELETE_FACETS_BY_ARTIFACT_ID =
             sql.get(SQL_DELETE_FACETS_BY_ARTIFACT_ID);
-        SQL_DELETE_ARTIFACT_BY_GID =
+        SQL_DELETE_FACETS_BY_ARTIFACT_ID =
             sql.get(SQL_DELETE_ARTIFACT_BY_GID);
     }
 
@@ -532,6 +532,7 @@
             @Override
             public boolean doIt() throws SQLException {
                 prepareStatement(SQL_ARTIFACT_BY_GID);
+                stmnt.setString(1, flys.identifier());
                 result = stmnt.executeQuery();
                 if (!result.next()) {
                     // new artifact

http://dive4elements.wald.intevation.org