summaryrefslogtreecommitdiff
path: root/dalos-hexview.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-12-19 20:51:10 -0800
committerPixel <pixel@nobis-crew.org>2009-12-19 20:51:10 -0800
commitaf5acc8f85b110afdaf1ae4ddd63fd3a6c2bfef6 (patch)
treef4300984e259d7dae4b634becaa6fa27dd2c1f83 /dalos-hexview.lua
parent41ed35236818d3f08b468e30add7ccfd05cde2c5 (diff)
hexview shouldn't crash if it has no real input.
Diffstat (limited to 'dalos-hexview.lua')
-rw-r--r--dalos-hexview.lua2
1 files changed, 1 insertions, 1 deletions
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)