incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1075158 - /incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/SearchModule.java
Date Sun, 27 Feb 2011 22:12:28 GMT
Author: jlboudart
Date: Sun Feb 27 22:12:28 2011
New Revision: 1075158

URL: http://svn.apache.org/viewvc?rev=1075158&view=rev
Log:
Fix potential null pointer

Modified:
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/SearchModule.java

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/SearchModule.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/SearchModule.java?rev=1075158&r1=1075157&r2=1075158&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/SearchModule.java
(original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/SearchModule.java
Sun Feb 27 22:12:28 2011
@@ -88,10 +88,11 @@ public class SearchModule extends IvyTas
             sb.append(i).append(": ");
             sb.append(mrids[i].getName());
             sb.append(" v").append(mrids[i].getRevision());
-            // hide organization if its the default one
-            if (!mrids[i].getOrganisation().equals(
-                    EasyAntConstants.EASYANT_SKELETONS_ORGANISATION))
-                sb.append(" by ").append(mrids[i].getOrganisation());
+			// hide organization if its the default one
+			if (!EasyAntConstants.EASYANT_SKELETONS_ORGANISATION
+					.equals(mrids[i].getOrganisation())) {
+				sb.append(" by ").append(mrids[i].getOrganisation());
+			}
             // Get the description
             ResolvedModuleRevision rmr = ivy.findModule(mrids[i]);
             if (rmr.getDescriptor().getDescription() != null



Mime
View raw message