Permalink
Browse files

Fix a bug in convert_data.lua

  • Loading branch information...
nagadomi committed Jul 7, 2016
1 parent 06e0730 commit 54b31e837d418b4fca9ace2e6b565f108adc7452
Showing with 2 additions and 2 deletions.
  1. +2 −2 convert_data.lua
@@ -75,7 +75,7 @@ local function load_images(list)
if csv_meta and csv_meta:len() > 0 then
csv_meta = cjson.decode(csv_meta)
end
if csv_meta.filters then
if csv_meta and csv_meta.filters then
filters = csv_meta.filters
end
local im, meta = image_loader.load_byte(filename)
@@ -95,7 +95,7 @@ local function load_images(list)
skip_notice = true
end
else
if csv_meta.x then
if csv_meta and csv_meta.x then
-- method == user
local yy = im
local xx, meta2 = image_loader.load_byte(csv_meta.x)

0 comments on commit 54b31e8

Please sign in to comment.