diff --git a/modules/smithy/api_trade.go b/modules/smithy/api_trade.go index fcf0474ab..dfd49c61b 100644 --- a/modules/smithy/api_trade.go +++ b/modules/smithy/api_trade.go @@ -58,7 +58,12 @@ func (this *apiComp) Sell(session comm.IUserSession, req *pb.SmithySellReq) (err rsp := &pb.SmithySellResp{ CustomerId: req.CustomerId, EquipIds: req.EquipIds, - Customers: cus.Customers, + } + + if cus != nil { + rsp.Customers = cus.Customers + } else { + rsp.Customers = []*pb.CustomerInfo{} } session.SendMsg(string(this.module.GetType()), "sell", rsp)