Show
Ignore:
Timestamp:
07/11/08 16:52:07 (4 months ago)
Author:
joonas.lehtinen@…
Message:

Better error message in case the user had not set main window

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java

    r4882 r5097  
    459459            Window window = null; 
    460460            window = getApplicationWindow(request, application); 
     461            if (window == null) { 
     462                throw new ServletException( 
     463                        "Application did not give any window, did you remember to setMainWindow()?"); 
     464            } 
    461465 
    462466            // Handle parameters