We see occasional error reports with an NPE thrown from PortfolioService.getLineChartSeriesAsync()
This calls portfolio/prices/ and expects to get an array of prices back from the server - it does not handle a null return, which the server will provide if the symbol is unknown or its cache is empty.
We should likely have the server throw a DataNotAvailable or similar exception for an unknown or missing symbol, then hook up meaningful error handling on the portfolio example + line charts tab to ensure we relay it back to the client (without raising a client error report)
We see occasional error reports with an NPE thrown from
PortfolioService.getLineChartSeriesAsync()
This calls
portfolio/prices/
and expects to get an array of prices back from the server - it does not handle anull
return, which the server will provide if the symbol is unknown or its cache is empty.We should likely have the server throw a
DataNotAvailable
or similar exception for an unknown or missing symbol, then hook up meaningful error handling on the portfolio example + line charts tab to ensure we relay it back to the client (without raising a client error report)