Quantcast

FIX: GetAutoCompleteRealms() returning nothing

Author Alexander Hess <github@xandr.co.uk>
Author date 2016-07-26 00:15:54
Author local date 2016-07-26 01:15:54 +0100
Committer GitHub <noreply@github.com>
Committer date 2016-07-26 00:15:54
Committer local date 2016-07-26 01:15:54 +0100
Commit 4ef88ff9d44f793bb22bdc6b453ebb114afd278f
Tree 289dde175f6f5dd0ccb06654d197b78513c03d5c
Parent ae363a3fd7228dac55dc96e6fb03cec215ea176c
FIX: GetAutoCompleteRealms() returning nothing

Added a catch for GetAutoCompleteRealms() returning an empty result which caused the addon to fail with the following error:

BagSync\BagSync-v8.7.lua:1128: bad argument #1 to 'pairs' (table expected, got no value)
[C]: in function `pairs'
BagSync\BagSync-v8.7.lua:1128: in function `?'
BagSync\BagSync-v8.7.lua:94: in function <BagSync\BagSync.lua:92>

Locals:
(*temporary) = "table expected, got no value"
 = <function> defined =[C]:-1