[jboss-cvs] jboss-seam/src/remoting/org/jboss/seam/remoting ...

Shane Bryzak sbryzak at redhat.com
Thu Nov 22 20:55:18 EST 2007


  User: sbryzak2
  Date: 07/11/22 20:55:18

  Modified:    src/remoting/org/jboss/seam/remoting 
                        InterfaceGenerator.java
  Log:
  fixed NPE
  
  Revision  Changes    Path
  1.10      +6 -0      jboss-seam/src/remoting/org/jboss/seam/remoting/InterfaceGenerator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InterfaceGenerator.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/remoting/org/jboss/seam/remoting/InterfaceGenerator.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- InterfaceGenerator.java	25 Jun 2007 22:58:17 -0000	1.9
  +++ InterfaceGenerator.java	23 Nov 2007 01:55:18 -0000	1.10
  @@ -67,6 +67,12 @@
           public void process() throws Exception
           {
              ServletContexts.instance().setRequest(request);
  +           
  +           if (request.getQueryString() == null)
  +           {
  +              throw new ServletException("Invalid request - no component specified");
  +           }
  +           
              String[] componentNames = request.getQueryString().split("&");
              Component[] components = new Component[componentNames.length];
              Set<Type> types = new HashSet<Type>();
  
  
  



More information about the jboss-cvs-commits mailing list