Author: rickhall
Date: Tue May 25 19:24:01 2010
New Revision: 948187
URL: http://svn.apache.org/viewvc?rev=948187&view=rev
Log:
Logic error; incorrectly checking for empty bundle array. (FELIX-2042)
Modified:
felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Basic.java
Modified:
felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Basic.java
URL:
http://svn.apache.org/viewvc/felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Basic.java?rev=948187&r1=948186&r2=948187&view=diff
==============================================================================
---
felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Basic.java
(original)
+++
felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Basic.java
Tue May 25 19:24:01 2010
@@ -620,7 +620,7 @@ public class Basic
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 class Basic
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;
}