Logic error; incorrectly checking for empty bundle array. (FELIX-2042)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@948187 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/command/src/main/java/org/apache/felix/gogo/command/Basic.java b/gogo/command/src/main/java/org/apache/felix/gogo/command/Basic.java
index a28d16e..618e3cb 100644
--- a/gogo/command/src/main/java/org/apache/felix/gogo/command/Basic.java
+++ b/gogo/command/src/main/java/org/apache/felix/gogo/command/Basic.java
@@ -620,7 +620,7 @@
public void refresh(
@Descriptor(description="target bundles (can be null or empty)") Bundle[] bundles)
{
- if ((bundles != null) && (bundles.length != 0))
+ if ((bundles != null) && (bundles.length == 0))
{
bundles = null;
}
@@ -644,7 +644,7 @@
public void resolve(
@Descriptor(description="target bundles (can be null or empty)") Bundle[] bundles)
{
- if ((bundles != null) && (bundles.length != 0))
+ if ((bundles != null) && (bundles.length == 0))
{
bundles = null;
}