Hi,
I am updating rating using the below code snippet.
IRepositoryServiceFactory repServiceFactory =ResourceFactory.getInstance().getServiceFactory();
IResourceFactory aResourceFactory = ResourceFactory.getInstance();
IResource aResource = aResourceFactory.getResource(rid, c);
IRepositoryService repositoryService=null;
repositoryService =repServiceFactory.getRepositoryService(aResource,IWcmConst.RATING_SERVICE);
But instance of IRepositoryServiceFactory (repServiceFactory) is getting initialized to null. How can I resolve this issue.
Thanks in advance.