WeakAuras

WeakAuras

206M Downloads

Error when expanding codebox in conditions

emptyrivers opened this issue ยท 0 comments

commented

Describe the bug

Received an error when trying to edit a Run Custom Code property change whilst multi-selecting auras which don't all have that property change.

This is reproducible in both 2.13.4, and the current tip of master.

Do you have an error log of what happened?

1x WeakAuras\WeakAuras-@[email protected]:5068: attempt to index local 'data' (a nil value)
WeakAuras\WeakAuras-@[email protected]:5068: in function <WeakAuras\WeakAuras.lua:5060>
(tail call): ?
WeakAurasOptions\OptionsFrames\TextEditor.lua:296: in function `Open'
WeakAurasOptions\WeakAurasOptions-@[email protected]:4161: in function `OpenTextEditor'
WeakAurasOptions\ConditionOptions.lua:769: in function <WeakAurasOptions\ConditionOptions.lua:758>

Locals:
data = nil
path = <table> {
}
reducedPath = <table> {
}
(*temporary) = <function> defined @WeakAuras\WeakAuras.lua:5060
(*temporary) = nil
(*temporary) = 1
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'data' (a nil value)"
WeakAuras = <table> {
 SetAuraVisibility = <function> defined @WeakAuras\BuffTrigger.lua:296
 ScheduleCooldownScan = <function> defined @WeakAuras\GenericTrigger.lua:3032
 CheckItemSlotCooldowns = <function> defined @WeakAuras\GenericTrigger.lua:2197
 OpenIconPicker = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:4661
 IsEnvironmentInitialized = <function> defined @WeakAuras\AuraEnvironment.lua:119
 duration_types = <table> {
 }
 ConfirmDelete = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:1352
 SafeToNumber = <function> defined @WeakAuras\WeakAuras.lua:6425
 tutorials = <table> {
 }
 pet_spec_types = <table> {
 }
 LayoutDisplayButtons = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:1564
 author_option_classes = <table> {
 }
 animations = <table> {
 }
 TenchInit = <function> defined @WeakAuras\GenericTrigger.lua:2895
 regionTypes = <table> {
 }
 absorb_modes = <table> {
 }
 bufftrigger_2_combine_types = <table> {
 }
 miss_types = <table> {
 }
 faction_group = <table> {
 }
 OpenOptions = <function> defined @WeakAuras\WeakAuras.lua:71
 autoeventend_types = <table> {
 }
 talent_types = <table> {
 }
 EJIcons = <table> {
 }
 SetModel = <function> defined @WeakAuras\WeakAuras.lua:6397
 reset_swing_spells = <table> {
 }
 spec_types_all = <table> {
 }
 GetAuraTooltipInfo = <function> defined @WeakAuras\WeakAuras.lua:4994
 FinishLoadUnload = <function> defined @WeakAuras\WeakAuras.lua:2187
 subRegionTypes = <table> {
 }
 ToggleMinimap = <function> defined @WeakAuras\WeakAuras.lua:128
 ConstructOptions = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:205
 FrameTick = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:528
 ResetCollapsed = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:4835
 BorderOptions = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:4055
 RegisterLoadEvents = <function> defined @WeakAuras\WeakAuras.lua:2077
 GetFrameLevelFor = <function> defined @WeakAuras\WeakAuras.lua:5108
 text_automatic_width = <table> {
 }
 custom_trigger_types = <table> {
 }
 RenameCollapsedData = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:4979
 LoadEncounterInitScripts = <function> defined @WeakAuras\WeakAuras.lua:1834
 subRegionOptions = <table> {
 }
 TimerTick = <function> defined @WeakAuras\RegionTypes\RegionPrototype.lua:474
 IsSpellInRange = <function> defined @WeakAuras\Prototypes.lua:23
 text_rotate_types = <table> {
 }
 MultipleDisplayTooltipDesc = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:193
 UpdateMouseoverTooltip = <function> defined @WeakAuras\WeakAuras.lua:4941
 timers = <table> {
 }
 anim_color_types = <table> {
 }
 ActivateEvent = <function> defined @WeakAuras\GenericTrigger.lua:377
 AddOption = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:2605
 Convert = <function> defined @WeakAuras\WeakAuras.lua:2414
 printPrefix = "|cff9900ffWeakAuras:|r "
 CheckCooldownReady = <function> defined @WeakAuras\GenericTrigger.lua:2246
 IsDisplayPicked = <function> defined @WeakAurasOptions\WeakAurasOptions.lua:4397
 L = <table> {
 }
 event_prototypes = <table> {
 }
 CanHaveDuration = <function> defined @WeakAuras\WeakAuras.lua:4737
 WatchItemCooldown = <function> defined @WeakAur

To Reproduce

  • Setup:
    • Install the import string below, or create an aura and add a condition which has a Run Custom Code property change, and then create an aura which has no conditions:
!TF1xZnQnq8pn9X2X2xsN71eFKM06dsrK2lVGJSqg0ySefeoj(b)zV7kbgzJjX5L2EZ0z8GfRwTA1(NF)eXJJJIju4HoMuft(cFtmzDmjb)bZSGYwLuQkMQYvLGa)XMFtmp)K55fX(J(PlX1VqvMWlVUzjXKRZfB3slt29uKsLRfGOkgnNJlJOvSn8YkHsg7)5rtgnQD9XlAh5LKYJjJ3909Ix45GBkzzQY7vcjSzt98J8cBvLi2Yr3IWuYLIu75XoLRRpY46JmU(iJRpgvKY0GFuHh4knTuBx(sHuuLzhddTsHX6srAk46wBgTxGz4RfGltRlPGPQxW3WLAs9YLIxIjZNEfjAoj6QqqrZmXKB50CDwNU3xYn6sU3B2mqCbpp)UKkRtKWxaMkYSf36n7(BEauPg9msro9vWdis6AEJ2OUKm1ZbsWoM)VcoMB44C1YoFw3gb2WJSc)QkH3ezEny5YkUgJwnHZwbxawLNVSjBCDquuWxN5DdwnjfRPya1nEssGyckCUnevXHmfCWAIysL04yRPc55R9(m05PpMhHc7qErPkPMjKP7EY7f66ICtotdfxbfTvcO5lHOjKDPAQPK1w)Ddk1Meitd988JjL8uyvwzPLQAOqVg3P6qEvi5YXPjQ2W3Dst0dS2loHw0Bfo7CUIAA)0q3IupbhUUg6G2NUWkktI(q5w97jMLtRQMtLjZHckwVPpPqZA6jfIzMZ3XYteGhXajV2BQsfeEpTJ(PEYl2umWzyPTjTV5PS(MVUIp3EaaWKkeB4inmhfnVusZ)JwuOjMkE2(260C1Z46D7bojeedq3supljplGkGR7eyaWaliG8lkhCl0OwePfN2fiR48IRWuIoelPr9oDhLtT9q1)oDuNN2DDuNL(gqPkQgN3Cs7oEdXvycYaCxOPNXbeL)IEEvgfIBFZjG3SJ1lW5B0Yo8hQAEL9(7NrVLkmPDtPy7UN(9AAc2xduthU3NbBHJ2p66PgXDqIx9quGZoBrhcEiA2D(EnYpOA6oFFVW5wG0W7(LBJAR26TjO5SeEJNG9xAi4hzIj(bOTTl7BhVSnIkXICSa1K4Y4I0my6F(Io8MpasWaDvybWnL8)QMlzVI3myYLwH2Z)IATwjdaMFGWQzImbBLKdBXaxl4eiZUaUMMlJLMjaZal7TPOpjlAhV9KJzDFtA8dzFhGf)iU(oo6ZKj(hhpQn0oJltbB4dsmV)4HKi7V6JtDylk1GSxhtZTvPwBb7Q1ke2c3iY(lUHeBtRR0Q17EAk4F4Zg2l0hE3ErAErMDJEwKGNfSaSfXelJ)IOIc1PjiEIHg93(Cqon4X)8IvtqmtS(Wa2C6RTT)QAUxGt)g8T2kewgNTYUowgvMY7MAdnVMBNcU5qbVey5imtiGHjiTBXVBBh((1TxQvJHJVdOv(VXf1(FAL)XPv64hofntFsLEepFFrRCg53bOzCWG)xIOX5Z8oRpK8Jr08X(C4tq1yqTvbfc9TR(v5OfdJV7qb0XlCgeq(QdODCX2pMo7yAYb5bD5pDzz6F9JdVSXXF827WcaASbCSlmFUr8Fd
  • Select both auras.
  • Click "Expand" on the code box.

EXPECTED RESULT
Codebox is expanded, and you may edit the property with no errors occuring.

ACTUAL RESULT
Error occurs. The Code Page displays whatever code you were editing last. Editing said code and attempting to save your changes will fail, with a symptomatic error message.