incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: incubator-ftpserver/src/java/org/apache/ftpserver/gui RootPanel.java
Date Sat, 24 Sep 2005 05:08:20 GMT
rana_b      2005/09/23 22:08:20

  Modified:    src/java/org/apache/ftpserver/gui RootPanel.java
  Log:
  Catch NPE in start server button behaviout in GUI - Sergey M Vladimirov
  
  Revision  Changes    Path
  1.2       +8 -1      incubator-ftpserver/src/java/org/apache/ftpserver/gui/RootPanel.java
  
  Index: RootPanel.java
  ===================================================================
  RCS file: /home/cvs/incubator-ftpserver/src/java/org/apache/ftpserver/gui/RootPanel.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RootPanel.java	7 Sep 2005 05:04:45 -0000	1.1
  +++ RootPanel.java	24 Sep 2005 05:08:20 -0000	1.2
  @@ -325,6 +325,13 @@
                       path = path.substring(1);
                   }
                   in = getClass().getClassLoader().getResourceAsStream(path);
  +                if (in == null) {
  +                    GuiUtils.showErrorMessage(RootPanel.this,
  +                                    "Configuration file " + path
  +                                  + " not found in classpath"
  +                                  + " nor inside any of classpath JARs.");
  +                    return;
  +                }
               }
               
               // create configuration object
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message