From bd95ece15489fdfce395a6d84ad4a2e38949f3e1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 24 Aug 2013 02:48:28 +0400 Subject: [PATCH] minor bug-fix (stub)... Signed-off-by: Alex A. Naanou --- ui/data.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/data.js b/ui/data.js index 66d8128d..70eb3bd9 100755 --- a/ui/data.js +++ b/ui/data.js @@ -592,8 +592,13 @@ function getImageGIDs(from, count, ribbon, inclusive){ } ribbon = DATA.ribbons[ribbon] - // ribbon this is empty... - if(ribbon.length == 0){ + // ribbon this is empty or non-existant... + // XXX need to check when can we get a ribbon == undefined case... + // ...race? + //if(ribbon == null){ + // // XXX + //} + if(ribbon == null || ribbon.length == 0){ return [] } if(count > 0){