Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2010-01-06 20:27:18 +0000
committerJohn Arthorne2010-01-06 20:27:18 +0000
commitf552e804443451ff1079b6a8ddfcde347f451c68 (patch)
treed5c02b0d268e6337d7eeba5b60dbf9a2a7d5d844 /bundles
parentab175574fe1e2d0c45b59f5756f664e28f82f794 (diff)
downloadrt.equinox.p2-f552e804443451ff1079b6a8ddfcde347f451c68.tar.gz
rt.equinox.p2-f552e804443451ff1079b6a8ddfcde347f451c68.tar.xz
rt.equinox.p2-f552e804443451ff1079b6a8ddfcde347f451c68.zip
honour setting null filter
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java
index cdc735362..3d815a727 100644
--- a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java
+++ b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/InstallableUnit.java
@@ -197,8 +197,7 @@ public class InstallableUnit implements IInstallableUnit {
}
public void setFilter(String filter) {
- if (filter != null)
- this.filter = new LDAPQuery(filter);
+ this.filter = filter == null ? null : new LDAPQuery(filter);
}
public void setId(String id) {

Back to the top