commit | 5cf9b718a0be75f09cfbf37a7d42f2c10ca40d2d | [log] [tgz] |
---|---|---|
author | Clement Escoffier <clement@apache.org> | Tue Oct 02 13:37:54 2007 +0000 |
committer | Clement Escoffier <clement@apache.org> | Tue Oct 02 13:37:54 2007 +0000 |
tree | dd37fd2783b9cd680fe68667849806d43d645976 | |
parent | eb49dfcbe13b5fcf63e7dbc9d9abf45417fae160 [diff] |
Fix a bug if the property has no field (forget one method) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@581232 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.java b/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.java index 629cc7c..6c9e76e 100644 --- a/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.java +++ b/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.java
@@ -315,7 +315,7 @@ // Verify that the field name correspond to a configurable property for (int i = 0; i < m_configurableProperties.length; i++) { ConfigurableProperty cp = m_configurableProperties[i]; - if (cp.getField().equals(fieldName)) { + if (cp.hasField() && cp.getField().equals(fieldName)) { // Check if the value has changed if (cp.getValue() == null || !cp.getValue().equals(value)) { cp.setValue(value); // Change the value