Add null check to set imagebox to blank state

This commit is contained in:
FireFish5000 2017-03-25 00:07:55 -05:00 committed by GitHub
parent 7818fd3dba
commit ffda3b0c4c
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ function imagebox:set_image(image)
end
end
image = surface.load(image)
image = image and surface.load(image)
if image then
local w = image.width