ChrisOelmueller/uh-issues — Issue #59: Crash when completing build after outlined/related buildings were removed
Author: ChrisOelmueller
Created: 2012-02-27 00:50:37+00:00
State: open

* build a tent
* start to build a mainsquare near the tent (keep left mouse button pressed)
* wait until the tent is a ruin (or completely gone)
* release left mouse button

{{{
File "/home/squiddy/projekte/unknown-horizons/horizons/gui/mousetools/buildingtool.py", line 409, in mouseReleased
self.preview_build(point, point)
File "/home/squiddy/projekte/unknown-horizons/horizons/gui/mousetools/buildingtool.py", line 181, in preview_build
self._remove_building_instances()
File "/home/squiddy/projekte/unknown-horizons/horizons/gui/mousetools/buildingtool.py", line 559, in _remove_building_instances
building.get_component(SelectableComponent).set_selection_outline()
File "/home/squiddy/projekte/unknown-horizons/horizons/world/component/selectablecomponent.py", line 156, in set_selection_outline
renderer = self.session.view.renderer['InstanceRenderer']
File "/home/squiddy/projekte/unknown-horizons/horizons/world/component/__init__.py", line 52, in session
return self.instance.session
AttributeError: 'NoneType' object has no attribute 'session'
}}}

Test will be available in master in a couple minutes.