]> git.mxchange.org Git - jjobs-war.git/blobdiff - src/java/org/mxchange/jjobs/converter/business/opening_time/JobsCompanyOpeningTimeConverter.java
Please cherry-pick:
[jjobs-war.git] / src / java / org / mxchange / jjobs / converter / business / opening_time / JobsCompanyOpeningTimeConverter.java
index 2d0a0c3266d41a1b21eaca358cbfabafb1f0b7b0..de8761ba653c78f789729c25f661cbc7a560d9c7 100644 (file)
@@ -44,9 +44,6 @@ public class JobsCompanyOpeningTimeConverter implements Converter<OpeningTime> {
        public OpeningTime getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
                // Is the value null or empty?
                if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
-                       // Warning message
-                       // @TODO Not working with JNDI (no remote interface) this.loggerBeanLocal.logWarning(MessageFormat.format("{0}.getAsObject(): submittedValue is null or empty - EXIT!", this.getClass().getSimpleName())); //NOI18N
-
                        // Return null
                        return null;
                }
@@ -54,16 +51,16 @@ public class JobsCompanyOpeningTimeConverter implements Converter<OpeningTime> {
                // Init instance
                OpeningTime openingTime = null;
 
+               // Is the instance there?
+               if (null == OPENING_TIME_LIST_CONTROLLER) {
+                       // Get bean from CDI directly
+                       OPENING_TIME_LIST_CONTROLLER = CDI.current().select(JobssOpeningTimeListWebViewBean.class).get();
+               }
+
                try {
                        // Try to parse the value as long
                        final Long openingTimeId = Long.valueOf(submittedValue);
 
-                       // Is the instance there?
-                       if (null == OPENING_TIMES_LIST_CONTROLLER) {
-                               // Get bean from CDI directly
-                               OPENING_TIMES_LIST_CONTROLLER = CDI.current().select(JobsOpeningTimeListWebViewBean.class).get();
-                       }
-
                        // Try to get user instance from it
                        openingTime = OPENING_TIMES_LIST_CONTROLLER.findOpeningTimeById(openingTimeId);
                } catch (final NumberFormatException ex) {