Author: anil.saldhana(a)jboss.com
Date: 2010-12-09 14:38:42 -0500 (Thu, 09 Dec 2010)
New Revision: 586
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/util/NetworkUtil.java
Log:
add value check
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/util/NetworkUtil.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/util/NetworkUtil.java 2010-12-04
01:55:23 UTC (rev 585)
+++
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/util/NetworkUtil.java 2010-12-09
19:38:42 UTC (rev 586)
@@ -38,6 +38,9 @@
*/
public static URI createURI( String value )
{
+ if( value == null )
+ throw new IllegalArgumentException( "value is null" );
+
try
{
return new URI( value );