Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.4
-
None
-
None
-
Patch
Description
When we try to get the first element into collection, we have to lead with null point exception. So with this method, when the collection is null or empty, the method will return null, and when not, the method will return the first element.
In this way, the user don't need to write nothing to lead with null point exception.