FELIX-4035 : Issue warning messages when metatype is be created, but no properties are defined

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1475702 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
index 79409e5..7a42089 100644
--- a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
+++ b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
@@ -185,7 +185,7 @@
 
             // additional check for metatype (FELIX-4035)
             if ( this.container.getMetatypeContainer() != null ) {
-                if ( this.container.getProperties().size() == 0.) {
+                if ( this.container.getMetatypeContainer().getProperties().size() == 0 ) {
                     this.logWarn(component, "Component is defined to generate metatype information, however no properties have been " +
                         "defined; in case no properties are wanted, consider to use 'metatype=false'");
                 }