Author: mculpepper(a)jboss.com
Date: 2008-05-01 15:12:19 -0400 (Thu, 01 May 2008)
New Revision: 7925
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesLabelProvider.java
Log:
[JBIDE-2176] add null check for exclusion patterns in the label provider
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesLabelProvider.java
===================================================================
---
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesLabelProvider.java 2008-04-30
16:54:01 UTC (rev 7924)
+++
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesLabelProvider.java 2008-05-01
19:12:19 UTC (rev 7925)
@@ -108,7 +108,10 @@
String text = "";
// +[includes] [excludes] : /path/to/root
text += "+[" + fileset.getIncludesPattern() + "] ";
- text += "-[" + fileset.getExcludesPattern() + "] : ";
+
+ if (fileset.getExcludesPattern() != null) {
+ text += "-[" + fileset.getExcludesPattern() + "] : ";
+ }
if (showFullPath) {
text += fileset.getGlobalSourcePath().toString();
Show replies by date