From c37cc91893457cb91ddb2a32b9ac76090bd6c521 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 8 Feb 2011 08:57:31 +0100 Subject: not using rapper directly, use rest client and tmp-file --- lib/task.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/task.rb') diff --git a/lib/task.rb b/lib/task.rb index 73d880e..ca18d7b 100644 --- a/lib/task.rb +++ b/lib/task.rb @@ -303,7 +303,7 @@ module OpenTox class SubTask def initialize(task, min, max) - raise "not a task or subtask" unless task.is_a?(Task) or task.is_a?(SubTask) + raise "not a task or subtask" if task!=nil and !(task.is_a?(Task) or task.is_a?(SubTask)) raise "invalid max ("+max.to_s+"), min ("+min.to_s+") params" unless min.is_a?(Numeric) and max.is_a?(Numeric) and min >= 0 and max <= 100 and max > min @task = task -- cgit v1.2.3