Item Count problem

working on getting duplicate weapons to display as "Hull Lasers x2".
Display works, but map is missing key/getting nullpointer when trading
(line 624 of Cargobay UI)