ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1374783 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java
Date Sun, 19 Aug 2012 16:08:21 GMT
Author: hibou
Date: Sun Aug 19 16:08:20 2012
New Revision: 1374783

URL: http://svn.apache.org/viewvc?rev=1374783&view=rev
Log:
Better check of not setup source attachement

Modified:
    ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java?rev=1374783&r1=1374782&r2=1374783&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java
(original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java
Sun Aug 19 16:08:20 2012
@@ -137,7 +137,7 @@ public class IvyAttachementManager {
 
     public IPath getSourceAttachment(IPath path) {
         String srcPath = prop.getProperty(path.toPortableString() + SRC_SUFFIX);
-        if (!"".equals(srcPath)) {
+        if (srcPath != null && srcPath.length() != 0) {
             return new Path(srcPath);
         }
         return null;
@@ -145,7 +145,7 @@ public class IvyAttachementManager {
 
     public IPath getSourceAttachmentRoot(IPath path) {
         String srcPath = prop.getProperty(path.toPortableString() + SRCROOT_SUFFIX);
-        if (!"".equals(srcPath)) {
+        if (srcPath != null && srcPath.length() != 0) {
             return new Path(srcPath);
         }
         return null;
@@ -153,7 +153,7 @@ public class IvyAttachementManager {
 
     public URL getDocAttachment(IPath path) {
         String srcPath = prop.getProperty(path.toPortableString() + DOC_SUFFIX);
-        if (!"".equals(srcPath)) {
+        if (srcPath != null && srcPath.length() != 0) {
             try {
                 return new URL(srcPath);
             } catch (MalformedURLException e) {



Mime
View raw message