From: <car...@us...> - 2011-08-11 15:55:09
|
Revision: 3607 http://openutils.svn.sourceforge.net/openutils/?rev=3607&view=rev Author: carlocolombo Date: 2011-08-11 15:55:03 +0000 (Thu, 11 Aug 2011) Log Message: ----------- null safe Modified Paths: -------------- trunk/openutils-elfunctions/src/main/java/net/sourceforge/openutils/elfunctions/CollectionElUtils.java Modified: trunk/openutils-elfunctions/src/main/java/net/sourceforge/openutils/elfunctions/CollectionElUtils.java =================================================================== --- trunk/openutils-elfunctions/src/main/java/net/sourceforge/openutils/elfunctions/CollectionElUtils.java 2011-08-11 09:25:16 UTC (rev 3606) +++ trunk/openutils-elfunctions/src/main/java/net/sourceforge/openutils/elfunctions/CollectionElUtils.java 2011-08-11 15:55:03 UTC (rev 3607) @@ -118,10 +118,11 @@ */ public static boolean contains(List< ? > list, Object o) { - return list.contains(o); + return list != null ? list.contains(o) : false; } - /** wrapper around contains (using arrays) + /** + * wrapper around contains (using arrays) * @param array * @param o * @return This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |