IN PROGRESS - issue FELIX-507: properties and service names of extended components not always included 
https://issues.apache.org/jira/browse/FELIX-507

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@633467 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java b/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
index c5ab230..6e0a9bb 100644
--- a/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
+++ b/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
@@ -427,7 +427,7 @@
         public void characters(char[] ch, int start, int length) throws SAXException {
             if ( this.pendingProperty != null ) {
                 final String text = new String(ch, start, length);
-                if ( this.pendingProperty.getValue() != null ) {
+                if ( this.pendingProperty.getValue() == null ) {
                     this.pendingProperty.setValue(text);
                 } else {
                     this.pendingProperty.setValue(this.pendingProperty.getValue() + text);