Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
Nightly Build
-
None
-
None
-
Operating System: All
Platform: All
-
22382
Description
bean:size throws JSPException if tested collection is null. It forces using
logic:present before.
Is it not simpler, to return size equal to 0 if tested collection does not exist?
The same concept could be used for logic:iterate.
It is generally correct, that contract between JSP and backand is "no bean, no
result". Such contract saves some memory. But if external library returns
Colelction you must explicite check if it is empty or not, means overhead for
any such case.
Proposed extension simplifies development and secure application against methods
returning sometimes null and sometimes empty collection.