From a3b1873cadc553a6f0afee5e95b2ff93937c6125 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 13 Nov 2022 18:14:17 +0100 Subject: [PATCH] Continued: - no exceptions in private methods or constructors --- src/org/mxchange/jcoreee/utils/FacesUtils.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/org/mxchange/jcoreee/utils/FacesUtils.java b/src/org/mxchange/jcoreee/utils/FacesUtils.java index 5dc0ac0..15458ef 100644 --- a/src/org/mxchange/jcoreee/utils/FacesUtils.java +++ b/src/org/mxchange/jcoreee/utils/FacesUtils.java @@ -88,11 +88,6 @@ public class FacesUtils implements Serializable { * No instances from this class are required */ private FacesUtils () { - // Is this null? - if (FacesContext.getCurrentInstance() == null) { - // Okay, don't allow any usage - throw new NullPointerException("Cannot access FacesContext, maybe you have tried to use this class from an EJB?"); //NOI18N - } } } -- 2.39.5