List<LineItem> items = order.getLineItems(); for (LineItem item : items) { long qty = item.hasUnitQty() ? item.getUnitQty() : 1000; }In the above code, Order has been obtained using OrderConnector. The line that gets the item's quantity is generating a null pointer exception. Can anybody help explain what is wrong here?
Thanks in advance.