commit | 5b39b40839fc71fb6ca8497bec910049db724291 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Wed Mar 26 08:49:25 2008 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Wed Mar 26 08:49:25 2008 +0000 |
tree | 7328cb6baa22b495100b6b3c53f4ab82549361fe | |
parent | 4ca6c4c388457f7a00f38fee219c9f8580e9eb6f [diff] |
FELIX-521 only try to compare option values if any values to compare to exist git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@641206 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/metatype/src/main/java/org/apache/felix/metatype/AD.java b/metatype/src/main/java/org/apache/felix/metatype/AD.java index 09f2058..4f74180 100644 --- a/metatype/src/main/java/org/apache/felix/metatype/AD.java +++ b/metatype/src/main/java/org/apache/felix/metatype/AD.java
@@ -196,7 +196,7 @@ } String[] optionValues = getOptionValues(); - if ( optionValues != null ) + if ( optionValues != null && optionValues.length > 0) { for ( int i = 0; i < optionValues.length; i++ ) {