From af5acc8f85b110afdaf1ae4ddd63fd3a6c2bfef6 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 19 Dec 2009 20:51:10 -0800 Subject: hexview shouldn't crash if it has no real input. --- dalos-hexview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dalos-hexview.lua') diff --git a/dalos-hexview.lua b/dalos-hexview.lua index f14e1e0..8aa53bb 100644 --- a/dalos-hexview.lua +++ b/dalos-hexview.lua @@ -40,7 +40,7 @@ dalosp.hexview = { update_houtput = function (self, ind, cursor) local h = self:get_linked_input(1) - local maxsixe = h:getsize() + local maxsixe = h and h:getsize() or -1 if h and self.watchees[ind] then if cursor < maxsize then self:set_houtput(nil, ind) -- cgit v1.2.3