fix (Time.now - nil) exception
authorTom Clegg <tom@clinicalfuture.com>
Tue, 29 Jan 2013 17:09:35 +0000 (09:09 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Tue, 29 Jan 2013 17:09:35 +0000 (09:09 -0800)
app/models/pipeline_invocation.rb

index 06e714d6ed196931fa3e748f0b3fb7894bdf3312..1c79182414b57ea301c87e8d944e75958631edd9 100644 (file)
@@ -60,7 +60,7 @@ class PipelineInvocation < OrvosModel
   end
 
   def active
-    success.nil? and Time.now - modified_at < 5.minutes
+    success.nil? and modified_at and Time.now - modified_at < 5.minutes
   end
 
   protected