directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r607570 - /directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
Date Sun, 30 Dec 2007 17:59:32 GMT
Author: felixk
Date: Sun Dec 30 09:59:31 2007
New Revision: 607570

URL: http://svn.apache.org/viewvc?rev=607570&view=rev
Log:
Avoid NPE

Modified:
    directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java

Modified: directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java?rev=607570&r1=607569&r2=607570&view=diff
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
(original)
+++ directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
Sun Dec 30 09:59:31 2007
@@ -386,7 +386,7 @@
      */
     protected static boolean deleteDirectory( File path )
     {
-        if ( path.exists() )
+        if ( path.exists() && path.isDirectory() )
         {
             for ( File file : path.listFiles() )
             {



Mime
View raw message