directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r912344 - /directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/ResourceMap.java
Date Sun, 21 Feb 2010 13:09:06 GMT
Author: seelmann
Date: Sun Feb 21 13:09:06 2010
New Revision: 912344

URL: http://svn.apache.org/viewvc?rev=912344&view=rev
Log:
Fixed a ZipException in case that the class path contains an element that doesn't exist

Modified:
    directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/ResourceMap.java

Modified: directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/ResourceMap.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/ResourceMap.java?rev=912344&r1=912343&r2=912344&view=diff
==============================================================================
--- directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/ResourceMap.java
(original)
+++ directory/shared/trunk/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/ResourceMap.java
Sun Feb 21 13:09:06 2010
@@ -67,7 +67,12 @@
         String element, Pattern pattern )
     {
         File file = new File( element );
-        
+        if ( !file.exists() )
+        {
+            // this may happen if the class path contains an element that doesn't exist
+            return;
+        }
+
         if ( file.isDirectory() )
         {
             getResourcesFromDirectory( map, file, pattern );



Mime
View raw message