From 8db00ba769303be552af656cf174d8673d624cda Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 13 Mar 2016 18:41:25 +0100 Subject: [PATCH] No need to log them if an email address change is not persisted yet (at these 2 places) --- .../model/email_address/JobsEmailChangeSessionBean.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/java/org/mxchange/jusercore/model/email_address/JobsEmailChangeSessionBean.java b/src/java/org/mxchange/jusercore/model/email_address/JobsEmailChangeSessionBean.java index 4b5fe41..1848a4d 100644 --- a/src/java/org/mxchange/jusercore/model/email_address/JobsEmailChangeSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/email_address/JobsEmailChangeSessionBean.java @@ -146,7 +146,6 @@ public class JobsEmailChangeSessionBean extends BaseDatabaseBean implements Emai // Persist it //this.getEntityManager().persist(emailChange); - // Get mailer instance DeliverableEmail mailer = new Mailer(); @@ -208,8 +207,8 @@ public class JobsEmailChangeSessionBean extends BaseDatabaseBean implements Emai // Found it isFound = true; } catch (final NoResultException ex) { - // Log it - this.getLoggerBeanLocal().logException(ex); + // Ignore it for now + //this.getLoggerBeanLocal().logException(ex); } // Trace message @@ -286,6 +285,9 @@ public class JobsEmailChangeSessionBean extends BaseDatabaseBean implements Emai // Get single result ChangeableEmailAddress dummy = (ChangeableEmailAddress) query.getSingleResult(); } catch (final NoResultException ex) { + // Ignore it for now + //this.getLoggerBeanLocal().logException(ex); + // Not found isUsed = false; } -- 2.39.5