Handle nullness in renderCurrentUsage
If there is no usage here the map entry will be null.  Just skip
rendering if that is the case.
@@ -308,6 +308,7 @@ public class BillingApiHandler extends LoggingRequestHandler {
}
private void renderCurrentUsage(Cursor cursor, Invoice currentUsage) {
+ if (currentUsage == null) return;
cursor.setString("amount", currentUsage.sum().toPlainString());
cursor.setString("status", "accrued");
cursor.setString("from", currentUsage.getStartTime().format(DATE_TIME_FORMATTER));
