]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #1813 (error if invalid value entered)
authorMarc Englund <marc.englund@itmill.com>
Fri, 13 Jun 2008 09:36:57 +0000 (09:36 +0000)
committerMarc Englund <marc.englund@itmill.com>
Fri, 13 Jun 2008 09:36:57 +0000 (09:36 +0000)
svn changeset:4865/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ITextualDate.java

index 445d7305b563d3038eb046b7e94e7370fb6fb9ba..fc67d36e20561eeac0e40f1c5efecdef264c1760 100644 (file)
@@ -141,7 +141,9 @@ public class ITextualDate extends IDateField implements Paintable, Field,
                 removeStyleName(PARSE_ERROR_CLASSNAME);\r
             }\r
 \r
-            showingDate = new Date(date.getTime());\r
+            if (date != null) {\r
+                showingDate = new Date(date.getTime());\r
+            }\r
 \r
             // Update variables\r
             // (only the smallest defining resolution needs to be\r