fix: null error /completeFeesEstimation

pull/8523/head
Gauthier LO 2025-04-17 09:58:04 +02:00
parent 42e49b3ed4
commit 333c278317
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ public class ShiroRealm extends AuthorizingRealm {
loginUser = this.checkUserTokenIsEffect(token);
} catch (AuthenticationException e) {
JwtUtil.responseError(SpringContextUtils.getHttpServletResponse(),401,e.getMessage());
e.printStackTrace();
//e.printStackTrace();
return null;
}
return new SimpleAuthenticationInfo(loginUser, token, getName());

View File

@ -911,7 +911,7 @@ public class InvoiceController {
// only calculate purchase estimation if products are not available and purchaseInvoiceNumber is null, else it's already been paid
List<String> orderIdsWithProductUnavailable = entry.getValue().stream()
.filter(
order -> order.getProductAvailable().equals("0")
order -> (order.getProductAvailable() == null || order.getProductAvailable().equals("0"))
&& order.getPurchaseInvoiceNumber() == null
&& order.getVirtualProductAvailable().equals("0"))
.map(PlatformOrder::getId).collect(Collectors.toList());