dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/7] dtas-console: avoid using current if it is nil


From: Eric Wong
Subject: [PATCH 1/7] dtas-console: avoid using current if it is nil
Date: Mon, 9 Sep 2013 08:31:03 +0000

We may get a pause event when we do not have a valid current
hash.
---
 bin/dtas-console | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/dtas-console b/bin/dtas-console
index eb246ee..0cb14fa 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -157,7 +157,9 @@ begin
         event = w.res_wait
         case event
         when "pause"
-          pause = current['infile'] || current['command']
+          if current
+            pause = current['infile'] || current['command']
+          end
         when %r{\Afile }
           pause = nil
         end
-- 
1.8.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]