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/10/18 23:21:49 UTC
[sling-org-apache-sling-jcr-registration] 16/33: SLING-3387 Fix
potential NPE
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-registration.git
commit 560ee614c4c5375132b92c65d3e4876b2dff14ab
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@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>.