Opened 8 years ago

Last modified 8 years ago

#4269 closed defect

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

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

Description (last modified by elexis)

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 to bb (who got defeated and became an observer), 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 yet.

The affected code comes from r18728, #2163.

Change History (3)

by elexis, 8 years ago

Attachment: commands.txt.7z added

comment:1 by elexis, 8 years ago

Description: modified (diff)
Summary: Groups - can't convert undefined to objectGroups portrait - can't convert undefined to object

by Imarok, 8 years ago

Attachment: 4269_fix.patch added
Note: See TracTickets for help on using tickets.