So just to confirm, you do not have a controller plugged into the computer at all? The bit of code that's erroring should only ever run if a controller of some sort is detected, if you are using the Power Selection menu from the Journal, or if you click a character's portrait to view the mini...