]> source.dussan.org Git - vaadin-framework.git/commitdiff
#4187 Drag and Drop server validation sample and a null check in AbstractSelectDropTa...
authorHenri Sara <henri.sara@itmill.com>
Mon, 15 Mar 2010 12:08:37 +0000 (12:08 +0000)
committerHenri Sara <henri.sara@itmill.com>
Mon, 15 Mar 2010 12:08:37 +0000 (12:08 +0000)
svn changeset:11871/svn branch:6.3

src/com/vaadin/ui/AbstractSelect.java

index aa084ec61ba487b9193b47fb83d1f9bdcb80c6fa..74fdbb525dfbd378feb606c10d11a95681659beb 100644 (file)
@@ -1807,9 +1807,11 @@ public abstract class AbstractSelect extends AbstractField implements
          * 
          */
         public VerticalDropLocation getDropLocation() {
-            VerticalDropLocation valueOf = VerticalDropLocation
-                    .valueOf((String) getData("detail"));
-            return valueOf;
+            String detail = (String) getData("detail");
+            if (detail == null) {
+                return null;
+            }
+            return VerticalDropLocation.valueOf(detail);
         }
 
     }