]> source.dussan.org Git - vaadin-framework.git/commitdiff
Better error message in case the user had not set main window
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Fri, 11 Jul 2008 16:52:07 +0000 (16:52 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Fri, 11 Jul 2008 16:52:07 +0000 (16:52 +0000)
svn changeset:5097/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java

index 86312ad927a0019531e85ca77192a8df8208a7c0..9e071308a380bf6de070abbc8ae1ebb7a3ab8e6c 100644 (file)
@@ -458,6 +458,10 @@ public class ApplicationServlet extends HttpServlet {
             // Finds the window within the application
             Window window = null;
             window = getApplicationWindow(request, application);
+            if (window == null) {
+                throw new ServletException(
+                        "Application did not give any window, did you remember to setMainWindow()?");
+            }
 
             // Handle parameters
             final Map parameters = request.getParameterMap();