keiron      01/08/14 01:56:27

  Modified:    src/org/apache/fop/apps AWTStarter.java
  Log:
  catches SecurityException for (future) use in security of webstart
  
  Revision  Changes    Path
  1.8       +8 -4      xml-fop/src/org/apache/fop/apps/AWTStarter.java
  
  Index: AWTStarter.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/AWTStarter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AWTStarter.java   2001/08/01 23:08:54     1.7
  +++ AWTStarter.java   2001/08/14 08:56:27     1.8
  @@ -1,5 +1,5 @@
   /*
  - * $Id: AWTStarter.java,v 1.7 2001/08/01 23:08:54 gears Exp $
  + * $Id: AWTStarter.java,v 1.8 2001/08/14 08:56:27 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -71,9 +71,13 @@
   
           String language = commandLineOptions.getLanguage();
   
  -        if (language == null)
  -            language = System.getProperty("user.language");
  -
  +        if (language == null) {
  +            try {
  +                language = System.getProperty("user.language");
  +            } catch(SecurityException se) {
  +                // if this is running in a secure place
  +            }
  +        }
           resource = getResourceBundle(TRANSLATION_PATH + "resources."
                                        + language);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to