]> git.mxchange.org Git - shipsimu.git/commitdiff
is_null() removed which is obsolete
authorRoland Häder <roland@mxchange.org>
Wed, 11 Mar 2009 02:13:15 +0000 (02:13 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 11 Mar 2009 02:13:15 +0000 (02:13 +0000)
application/selector/class_ApplicationSelector.php

index 071da88440a24b8a69b6c2369f5b59836ba8cdfc..7af3eee0aede546dc1047e06bcacbb565fb6f214 100644 (file)
@@ -247,10 +247,9 @@ class ApplicationSelector extends BaseFrameworkSystem {
         * Inserts all loaded application templates into the selector's template
         *
         * @return      void
-        * @throws      NullPointerException            If $curr is null
-        * @throws      NoArrayException                        If $curr is not an array
-        * @throws      InvalidArrayCountException      If $curr contains an
-        *                                                                              unexpected count of elements
+        * @throws      NoArrayException                                If $curr is not an array
+        * @throws      InvalidArrayCountException              If $curr contains an
+        *                                                                                      unexpected count of elements
         * @throws      MissingArrayElementsException   If $curr is missing expected
         *                                                                                      array elements
         * @todo        Finish handling all applications here
@@ -269,10 +268,7 @@ class ApplicationSelector extends BaseFrameworkSystem {
                        $curr = $idx->current();
 
                        // Do some sanity checks on the loaded item
-                       if (is_null($curr)) {
-                               // $curr is null
-                               throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
-                       } elseif (!is_array($curr)) {
+                       if (!is_array($curr)) {
                                // Not an array
                                throw new NoArrayException($curr, self::EXCEPTION_IS_NO_ARRAY);
                        } elseif (count($curr) != 2) {