X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fselector%2Fclass_ApplicationSelector.php;h=7af3eee0aede546dc1047e06bcacbb565fb6f214;hp=071da88440a24b8a69b6c2369f5b59836ba8cdfc;hb=7bfc47b5ad99ea3c5d9f2ca1092f0b0b822b4ead;hpb=f42bf974e65e115c7f5d3af9fe3c4b6407c617b9 diff --git a/application/selector/class_ApplicationSelector.php b/application/selector/class_ApplicationSelector.php index 071da88..7af3eee 100644 --- a/application/selector/class_ApplicationSelector.php +++ b/application/selector/class_ApplicationSelector.php @@ -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) {