I added that line because I was getting the error.
After removal also, getting the error today too.
Don't get it if zero position.
But get it if I buy or sell option or buy a stock.
This is from the official example code
public void getPositions(KiteConnect kiteConnect) throws KiteException, IOException {
// Get positions returns position model which contains list of positions.
Map> position = kiteConnec…