Author: clement
Date: Tue Oct 2 06:37:54 2007
New Revision: 581232
URL: http://svn.apache.org/viewvc?rev=581232&view=rev
Log:
Fix a bug if the property has no field (forget one method)
Modified:
felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.java
Modified:
felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.java
URL:
http://svn.apache.org/viewvc/felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.java?rev=581232&r1=581231&r2=581232&view=diff
==============================================================================
---
felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.java
(original)
+++
felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.java
Tue Oct 2 06:37:54 2007
@@ -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