You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by of...@apache.org on 2020/09/25 10:51:23 UTC
[incubator-dlab] branch develop updated: Fixed issue with billing
for azure
This is an automated email from the ASF dual-hosted git repository.
ofuks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/develop by this push:
new 9196dc0 Fixed issue with billing for azure
9196dc0 is described below
commit 9196dc03c9aa5b69f5620772106baad2ffae9df1
Author: Oleh Fuks <ol...@gmail.com>
AuthorDate: Fri Sep 25 13:51:03 2020 +0300
Fixed issue with billing for azure
---
.../java/com/epam/dlab/billing/azure/CalculateBillingServiceImpl.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/services/billing-azure/src/main/java/com/epam/dlab/billing/azure/CalculateBillingServiceImpl.java b/services/billing-azure/src/main/java/com/epam/dlab/billing/azure/CalculateBillingServiceImpl.java
index 7b29677..a4ba149 100644
--- a/services/billing-azure/src/main/java/com/epam/dlab/billing/azure/CalculateBillingServiceImpl.java
+++ b/services/billing-azure/src/main/java/com/epam/dlab/billing/azure/CalculateBillingServiceImpl.java
@@ -48,6 +48,7 @@ import java.nio.file.Paths;
import java.time.LocalDate;
import java.util.Collections;
import java.util.List;
+import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
@@ -155,6 +156,7 @@ public class CalculateBillingServiceImpl implements CalculateBillingService {
if (!dailyInvoices.isEmpty()) {
return dailyInvoices
.stream()
+ .filter(Objects::nonNull)
.map(this::toBillingData)
.collect(Collectors.toList());
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org