only log an error if there is no implementation set AND creating an instance using a factory did not work

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@910896 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java
index fb617ec..0422fc7 100644
--- a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java
+++ b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java
@@ -690,10 +690,10 @@
     					}
 		        	}
 	        	}
-	        	if (m_implementation == null) {
-                    m_logger.log(Logger.LOG_ERROR, "Implementation cannot be null.");
-	        	}
 	        	if (m_serviceInstance == null) {
+	        	    if (m_implementation == null) {
+	        	        m_logger.log(Logger.LOG_ERROR, "Implementation cannot be null.");
+	        	    }
 	        	    m_serviceInstance = m_implementation;
 	        	}
 	        }