aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/data
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-09-17 14:16:35 +0300
committerArtur Signell <artur@vaadin.com>2013-09-17 14:16:36 +0300
commit0f7bcffdb9f753148d1027ff380c9520bb78bfd8 (patch)
treea91e21f0060cd097bfa70b8eef91723047d49692 /server/src/com/vaadin/data
parent70649ac21a40a2b819856da39ebcfb5394ae3280 (diff)
parent3a4351f9b777009d8e226d26125f758861ddcbb3 (diff)
downloadvaadin-framework-0f7bcffdb9f753148d1027ff380c9520bb78bfd8.tar.gz
vaadin-framework-0f7bcffdb9f753148d1027ff380c9520bb78bfd8.zip
Merge changes from origin/7.1
de53191 Fix for #12279 (caret jumps when formatting in RTA). fca0f7a Add <br> as empty representation for webkit (#12490) 6dcece8 Allow creating TextBox or SuggestionPopup when extending VFilterSelect (#12491) 22fcb44 Include unobfuscated file used by test in the war (#12468) bc90a58 Unified xml files to end with new line 3d01d74 Reduce Ivy resolver spam to a minimum (#12510) 1e73ca8 Fix keystore path to correspond to the Vaadin 7 directory structure (#12520) dcf9c61 Protect CurrentInstance instances from garbage collection (#12509) 24ffbc2 Allow storing and restoring null instances in CurrentInstance #12509 0d79a84 Added a comment that hopefully explains the NULL_OBJECT #12509 e4d99b3 Use non-obfuscated version of vaadinPush.js when not in production (#12527) 3a31dfe NullPointerException in TableQuery.fetchMetadata() (#11403) 4659797 fixed incorrect name for close-pressed.png for windows in black theme (#12563) 9b05257 Test for push with streaming based on Table 3cafce3 NullPointerException in DateToSqlDateConverter (#12284) 3a4351f Ensure PushConnection is properly cleaned up on disconnect (#12226, #12522) Change-Id: I44f3d5f003e62e7ab86a22188b22933491226868
Diffstat (limited to 'server/src/com/vaadin/data')
-rw-r--r--server/src/com/vaadin/data/util/converter/DateToSqlDateConverter.java9
-rw-r--r--server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java4
2 files changed, 12 insertions, 1 deletions
diff --git a/server/src/com/vaadin/data/util/converter/DateToSqlDateConverter.java b/server/src/com/vaadin/data/util/converter/DateToSqlDateConverter.java
index cddf2d8a42..7c252d78f2 100644
--- a/server/src/com/vaadin/data/util/converter/DateToSqlDateConverter.java
+++ b/server/src/com/vaadin/data/util/converter/DateToSqlDateConverter.java
@@ -44,6 +44,10 @@ public class DateToSqlDateConverter implements Converter<Date, java.sql.Date> {
+ targetType.getName() + ")");
}
+ if (value == null) {
+ return null;
+ }
+
return new java.sql.Date(value.getTime());
}
@@ -56,6 +60,11 @@ public class DateToSqlDateConverter implements Converter<Date, java.sql.Date> {
+ getPresentationType().getName() + " (targetType was "
+ targetType.getName() + ")");
}
+
+ if (value == null) {
+ return null;
+ }
+
return new Date(value.getTime());
}
diff --git a/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java b/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java
index 39c8365076..b54a630e04 100644
--- a/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java
+++ b/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java
@@ -663,7 +663,9 @@ public class TableQuery extends AbstractTransactionalQuery implements
} catch (SQLException ignore) {
} finally {
try {
- tables.close();
+ if (tables != null) {
+ tables.close();
+ }
} catch (SQLException ignore) {
}
}