Fix rare bugs identified by fuzzing

This commit is contained in:
Paulo Matias
2014-01-21 16:54:22 -02:00
parent e4569debe6
commit 26283660b7
3 changed files with 7 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ function ReaderDictionary:stardictLookup(word, box)
end
function ReaderDictionary:showDict(results, box)
if results and results[1] then
if results and results[1] and box then
DEBUG("showing quick lookup dictionary window")
local align = nil
local region = Geom:new{x = 0, w = Screen:getWidth()}