DImuthuUpe commented on a change in pull request #14:
URL: https://github.com/apache/airavata-mft/pull/14#discussion_r418657021



##########
File path: README.md
##########
@@ -73,6 +74,9 @@ public class SampleClient {
             try {
                 TransferStateApiResponse transferState = 
client.getTransferState(TransferStateApiRequest.newBuilder().setTransferId(transferApiResponse.getTransferId()).build());
                 System.out.println("Latest Transfer State " + 
transferState.getState());
+                if (transferState.getState().equals("COMPLETED")) {

Review comment:
       if ("COMPLETED".equals(transferState.getState()) || 
"FAILED".equals(transferState.getState()))) {
   
   This is to avoid NPEs 




----------------------------------------------------------------
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]


Reply via email to