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++ )
             {