Opened 8 years ago

Last modified 8 years ago

#4269 closed defect

Groups - can't convert undefined to object — at Initial Version

Reported by: elexis Owned by:
Priority: Should Have Milestone: Alpha 21
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

The following error stack was repeated onTick in an alpha 21 (r18802), reported by bb :

ERROR: JavaScript error: gui/session/session.js line 900
TypeError: can't convert undefined to object
  updateGroups/getCostSum@gui/session/session.js:900:10
  updateGroups/icon<@gui/session/session.js:918:13
  updateGroups@gui/session/session.js:916:31
  updateGUIObjects@gui/session/session.js:722:2
  onSimulationUpdate@gui/session/session.js:677:2
  __eventhandler116 (simulationupdate)@sn simulationupdate:0:1

It occured twice, when having a controlgroup on a hero garrisoned in a ship and (if he recalls correctly), when a hero garrisoned in a CC was selected. However we found no way to reproduce it.

The affected code comes from r18728, #2163.

Change History (1)

by elexis, 8 years ago

Attachment: commands.txt.7z added
Note: See TracTickets for help on using tickets.