jicarilla-sandbox/platform/container/impl/src/java/org/jicarilla/container/builder ResolverProviderHelper.java,1.3,1.4

Leo Simons <[email protected]>
Newsgroups gmane.comp.java.jicarilla.cvs
Message-ID <[email protected]>
Update of /cvsroot/jicarilla/jicarilla-sandbox/platform/container/impl/src/java/org/jicarilla/container/builder
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17523/platform/container/impl/src/java/org/jicarilla/container/builder

Modified Files:
	ResolverProviderHelper.java 
Log Message:
null check

Index: ResolverProviderHelper.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/container/impl/src/java/org/jicarilla/container/builder/ResolverProviderHelper.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ResolverProviderHelper.java	8 Jan 2004 17:06:10 -0000	1.3
+++ ResolverProviderHelper.java	17 Mar 2004 19:12:34 -0000	1.4
@@ -28,6 +28,7 @@
 import org.jicarilla.container.KeyAwareAdapter;
 import org.jicarilla.container.ResolverProvider;
 import org.jicarilla.framework.Selector;
+import org.jicarilla.framework.Assert;
 
 /**
  * 
@@ -40,12 +41,14 @@
     public KeyAwareAdapter getAdapter( final Object provider )
             throws Exception
     {
+        Assert.assertNotNull( "provider argument may not be null", provider );
         return super.getAdapter(
                 ((ResolverProvider)provider).getResolver() );
     }
 
     public Selector getSelector( final Object provider ) throws Exception
     {
+        Assert.assertNotNull( "provider argument may not be null", provider );
         return super.getSelector( ((ResolverProvider)provider).getResolver() );
     }
 }



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.