diff --git a/YLErpWeb/Controllers/ExchangeTradeController.cs b/YLErpWeb/Controllers/ExchangeTradeController.cs index 7b25707c..f705f7d2 100644 --- a/YLErpWeb/Controllers/ExchangeTradeController.cs +++ b/YLErpWeb/Controllers/ExchangeTradeController.cs @@ -273,7 +273,7 @@ namespace YLErp.Web.Controllers var result = new XBondSpread() { bid = 0, ofr = 0 }; try { - result = new XBondSpreadService().GetXBondSpread(_yLCache); + result = new XBondSpreadService().GetXBondSpread(_yLCache) ?? new XBondSpread() { bid = 0, ofr = 0 }; } catch(Exception) {