]> git.mxchange.org Git - jjobs-war.git/blobdiff - src/java/org/mxchange/jjobs/converter/landline/JobsLandLineNumberConverter.java
Please cherry-pick:
[jjobs-war.git] / src / java / org / mxchange / jjobs / converter / landline / JobsLandLineNumberConverter.java
index 5c808704e181386091bd082f5d18b8ee9c4ee2ca..8c5a57770aae57d85782831a1b38eb6b62093f2f 100644 (file)
@@ -51,16 +51,16 @@ public class JobsLandLineNumberConverter implements Converter<DialableLandLineNu
                // Init instance
                DialableLandLineNumber landLineNumber = null;
 
+               // Is the instance there?
+               if (null == PHONE_LIST_CONTROLLER) {
+                       // Get bean from CDI directly
+                       PHONE_LIST_CONTROLLER = CDI.current().select(JobssPhoneListWebViewBean.class).get();
+               }
+
                try {
                        // Try to parse the value as long
                        final Long landLineNumberId = Long.valueOf(submittedValue);
 
-                       // Is the instance there?
-                       if (null == PHONE_LIST_CONTROLLER) {
-                               // Get bean from CDI directly
-                               PHONE_LIST_CONTROLLER = CDI.current().select(JobsPhoneListWebViewBean.class).get();
-                       }
-
                        // Try to get mobile instance from it
                        landLineNumber = PHONE_LIST_CONTROLLER.findLandLineNumberById(landLineNumberId);
                } catch (final NumberFormatException ex) {