Applied patch (FELIX-1216) to avoid class cast exception
when a property is not a string.


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@784155 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/fileinstall/src/main/java/org/apache/felix/fileinstall/FileInstall.java b/fileinstall/src/main/java/org/apache/felix/fileinstall/FileInstall.java
index 1986029..8226778 100644
--- a/fileinstall/src/main/java/org/apache/felix/fileinstall/FileInstall.java
+++ b/fileinstall/src/main/java/org/apache/felix/fileinstall/FileInstall.java
@@ -126,8 +126,11 @@
         for (Enumeration e = properties.keys(); e.hasMoreElements(); )
         {
             String name = (String) e.nextElement();
+            Object value = properties.get(name);
             properties.put(name,
-                Util.substVars(( String ) properties.get(name), name, null, properties));
+                value instanceof String
+                    ? Util.substVars((String) value, name, null, properties)
+                    : value);
         }
     }
-}
+}
\ No newline at end of file