I was cleaning up a long list of factories in my factory planner by rapidly clicking the delete button for them. After I had ran out of factories, the server crashed with:
Error while running event factoryplanner::on_gui_click (ID 1)
factoryplanner/ui/main/factory_list.lua:279: attempt to index local 'factory' (a nil value)
stack traceback:
factoryplanner/ui/main/factory_list.lua:279: in function 'handler'
factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114>"
Reproduction
Be in a multiplayer game (at least for when I did it)
Have a lot of factories defined (in my case I had about 20 or so).
Problem Description
I was cleaning up a long list of factories in my factory planner by rapidly clicking the delete button for them. After I had ran out of factories, the server crashed with:
Error while running event factoryplanner::on_gui_click (ID 1) factoryplanner/ui/main/factory_list.lua:279: attempt to index local 'factory' (a nil value) stack traceback: factoryplanner/ui/main/factory_list.lua:279: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114>"
Reproduction