airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amila Jayasekara <thejaka.am...@gmail.com>
Subject Question about null check in GFacUtils
Date Tue, 02 Jul 2013 13:42:17 GMT
Hi All,

In GFacUtils I see methods like follows;

public static void updateApplicationJobStatusUpdateTime(JobExecutionContext
context, String jobId, Date statusUpdateTime){
        AiravataAPI airavataAPI =
context.getGFacConfiguration().getAiravataAPI();
if(airavataAPI != null){
try {
airavataAPI.getProvenanceManager().updateApplicationJobStatusUpdateTime(jobId,
statusUpdateTime);
} catch (AiravataAPIInvocationException e) {
log.error("Error in updating application job status time
"+statusUpdateTime.toString()+" for job Id "+jobId+"!!!", e);
}
        }
}

Any particular reason to have "if(airavataAPI != null)" condition ?

Thanks
Amila

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message