]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix npe (#6619)
authorLeif Åstrand <leif@vaadin.com>
Tue, 20 Dec 2011 07:31:47 +0000 (09:31 +0200)
committerLeif Åstrand <leif@vaadin.com>
Tue, 20 Dec 2011 07:31:47 +0000 (09:31 +0200)
src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java

index 18642b5d18aaeb81055a7126060f0b75254be9d9..7b8b1460758e3a4891bb3dc1697681ff7c9f6ec7 100644 (file)
@@ -298,6 +298,7 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
     @Override
     public void init(PortletConfig config) throws PortletException {
         super.init(config);
+        applicationProperties = new Properties();
 
         // Read default parameters from the context
         final PortletContext context = config.getPortletContext();
@@ -309,7 +310,6 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
         }
 
         // Override with application settings from portlet.xml
-        applicationProperties = new Properties();
         for (final Enumeration<String> e = config.getInitParameterNames(); e
                 .hasMoreElements();) {
             final String name = e.nextElement();
index 6ae80a65a578a038b81fdf1b64df299d3c825044..afdaabcee0a7bc27fd6048608607a79205c70ec4 100644 (file)
@@ -198,6 +198,7 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements
     public void init(javax.servlet.ServletConfig servletConfig)
             throws javax.servlet.ServletException {
         super.init(servletConfig);
+        applicationProperties = new Properties();
 
         // Read default parameters from server.xml
         final ServletContext context = servletConfig.getServletContext();
@@ -209,7 +210,6 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements
         }
 
         // Override with application config from web.xml
-        applicationProperties = new Properties();
         for (final Enumeration<String> e = servletConfig
                 .getInitParameterNames(); e.hasMoreElements();) {
             final String name = e.nextElement();