I just got a similar error today..
Savegame here (lots of enabled mods, sorry for that) -> https://drive.google.com/open?id=18jgcGDPjM2ohYcyGl0Bbte-vO-ICiOlL
To reproduce, simply disable personal roboport in toolbar, then shoot a wall.
Apparently, removing all nearby roboports prevents the crash
Error while running event Repair_Turret::on_tick (ID 0)
Repair_Turret/script/repair_turret.lua:279: attempt to index a nil value
stack traceback:
Repair_Turret/script/repair_turret.lua:279: in function 'get_pickup_entity'
Repair_Turret/script/repair_turret.lua:305: in function 'update_turret'
Repair_Turret/script/repair_turret.lua:424: in function 'handler'
core/lualib/event_handler.lua:44: in function <core/lualib/event_handler.lua:42>