It's trying to access BasicUI.db, which gets defined in BasicUI.OnInitialize, but that doesn't get called until some time after all of your addon files have loaded. Namely, when the ADDON_LOADED event fires for your addon.
__________________
Grab your sword and fight the Horde!
|