You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:48:52 UTC

[sling-org-apache-sling-jcr-registration] 16/18: SLING-3387 Fix potential NPE

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.registration-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-registration.git

commit 169d91b798d7475c4b536c1fb6b9400e44743576
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Wed Feb 12 11:02:59 2014 +0000

    SLING-3387 Fix potential NPE
    
    Applying patch by Michael Dürig (thanks alot)
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/registration@1567598 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/sling/jcr/registration/AbstractRegistrationSupport.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/jcr/registration/AbstractRegistrationSupport.java b/src/main/java/org/apache/sling/jcr/registration/AbstractRegistrationSupport.java
index 6d941ed..202002b 100644
--- a/src/main/java/org/apache/sling/jcr/registration/AbstractRegistrationSupport.java
+++ b/src/main/java/org/apache/sling/jcr/registration/AbstractRegistrationSupport.java
@@ -214,8 +214,8 @@ public abstract class AbstractRegistrationSupport {
     protected String getName(ServiceReference reference) {
         String name = (String) reference.getProperty(REPOSITORY_REGISTRATION_NAME);
         if (name == null || name.length() == 0) {
-            this.log.log(LogService.LOG_DEBUG,
-                "registerRepository: Repository not to be registered");
+            log(LogService.LOG_DEBUG,
+                    "registerRepository: Repository not to be registered", null);
             return null;
         }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.