Commit 6cd96415 authored by Ľuboslav Pivarč's avatar Ľuboslav Pivarč
Browse files

status null fixed

parent 0d622081
......@@ -88,7 +88,7 @@ public class KubernetesImpl implements CBioOnDemandService {
String labels = APP_LABELS + ", user=" + instance.getUser().getUserId() + ", instance=" + instance.getId();
List<V1beta1CronJob> result = api.getCroneJobs(labels, NAMESPACE);
if (result.size()!=1)
if (result == null || result.size()!=1)
return null;
String cronTime = result.get(0).getSpec().getSchedule();
long timeToExpire = Utils.getExpireTimeFromCronExpresion(cronTime);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment