airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lahiru Gunathilake <glah...@gmail.com>
Subject Re: Question about null check in GFacUtils
Date Tue, 02 Jul 2013 13:53:53 GMT
It's not required now. Please remove it.


Lahiru

On Tuesday, July 2, 2013, Amila Jayasekara wrote:

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


-- 
System Analyst Programmer
PTI Lab
Indiana University

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