commit | 91f0c77e9da47a9427e7141058927bb91bbdc1c4 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Fri Jun 12 15:19:24 2009 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Fri Jun 12 15:19:24 2009 +0000 |
tree | 7c190f528b2f68574263b805ddae2aed765797c7 | |
parent | 2ed38ef96c1d7cf5dbfce084d18990b0653ad5f7 [diff] |
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