|
|
@ -239,8 +239,7 @@ public class APIUtil {
|
|
|
|
synchronized (APIUtil.class) {
|
|
|
|
synchronized (APIUtil.class) {
|
|
|
|
if (commentsManager == null) {
|
|
|
|
if (commentsManager == null) {
|
|
|
|
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
|
|
|
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
|
|
|
commentsManager =
|
|
|
|
commentsManager = (CommentsManager) ctx.getOSGiService(CommentsManager.class, null);
|
|
|
|
(CommentsManager) ctx.getOSGiService(CommentsManager.class, null);
|
|
|
|
|
|
|
|
if (commentsManager == null) {
|
|
|
|
if (commentsManager == null) {
|
|
|
|
String msg = "Comments Manager service has not initialized.";
|
|
|
|
String msg = "Comments Manager service has not initialized.";
|
|
|
|
log.error(msg);
|
|
|
|
log.error(msg);
|
|
|
|