This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit ac713b3e822d47c4788f2c12d9dd4f8d67c8c90f Author: Kevin Morin <morin@codelutin.com> Date: Fri Mar 17 15:55:39 2017 +0100 fixes #9105 NPE si le dossier est vide --- .../faxtomail/persistence/entities/EmailTopiaDao.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/faxtomail-persistence/src/main/java/com/franciaflex/faxtomail/persistence/entities/EmailTopiaDao.java b/faxtomail-persistence/src/main/java/com/franciaflex/faxtomail/persistence/entities/EmailTopiaDao.java index 74f63bc..9340ccd 100644 --- a/faxtomail-persistence/src/main/java/com/franciaflex/faxtomail/persistence/entities/EmailTopiaDao.java +++ b/faxtomail-persistence/src/main/java/com/franciaflex/faxtomail/persistence/entities/EmailTopiaDao.java @@ -1092,8 +1092,17 @@ public class EmailTopiaDao extends AbstractEmailTopiaDao<Email> { Object[] queryResut = findUnique(inProgressQuantitiesQuery, args); Long productInProgressQuantity = (Long) queryResut[0]; + if (productInProgressQuantity == null) { + productInProgressQuantity = 0L; + } Long savInProgressQuantity = (Long) queryResut[1]; + if (savInProgressQuantity == null) { + savInProgressQuantity = 0L; + } Long quotationInProgressQuantity = (Long) queryResut[2]; + if (quotationInProgressQuantity == null) { + quotationInProgressQuantity = 0L; + } inProgressDemandsQuantities = new Quantities(productInProgressQuantity, savInProgressQuantity, -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.