nikpawar89 commented on a change in pull request #738: GSIM and GLIM with test 
cases (FINERACT-603)
URL: https://github.com/apache/fineract/pull/738#discussion_r410954530
 
 

 ##########
 File path: 
fineract-provider/src/main/java/org/apache/fineract/portfolio/group/api/GroupsApiResource.java
 ##########
 @@ -508,4 +524,64 @@ public String postGroupTemplate(@FormDataParam("file") 
InputStream uploadedInput
                 uploadedInputStream,fileDetail,locale,dateFormat);
         return this.toApiJsonSerializer.serialize(importDocumentId);
     }
+
+    @GET
+    @Path("{groupId}/glimaccounts")
+    @Consumes({ MediaType.APPLICATION_JSON })
+    @Produces({ MediaType.APPLICATION_JSON })
+    public String retrieveglimAccounts(@PathParam("groupId") final Long 
groupId, @QueryParam("parentLoanAccountNo")final String parentLoanAccountNo,  
@Context final UriInfo uriInfo)
+    {
+         this.context.authenticatedUser().validateHasReadPermission("GROUP");
+         List<GLIMContainer> glimContainer;
 
 Review comment:
   Try using  Collections.emptyList() to initialize container variables, it 
helps to avoid ugly null pointer exceptions

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to