[jboss-cvs] JBossAS SVN: r104779 - projects/jboss-cl/trunk/classloading/src/main/java/org/jboss/classloading/spi/dependency/policy.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu May 13 16:33:06 EDT 2010
Author: alesj
Date: 2010-05-13 16:33:05 -0400 (Thu, 13 May 2010)
New Revision: 104779
Modified:
projects/jboss-cl/trunk/classloading/src/main/java/org/jboss/classloading/spi/dependency/policy/WildcardClassLoaderPolicy.java
Log:
Add null checks.
Modified: projects/jboss-cl/trunk/classloading/src/main/java/org/jboss/classloading/spi/dependency/policy/WildcardClassLoaderPolicy.java
===================================================================
--- projects/jboss-cl/trunk/classloading/src/main/java/org/jboss/classloading/spi/dependency/policy/WildcardClassLoaderPolicy.java 2010-05-13 20:16:49 UTC (rev 104778)
+++ projects/jboss-cl/trunk/classloading/src/main/java/org/jboss/classloading/spi/dependency/policy/WildcardClassLoaderPolicy.java 2010-05-13 20:33:05 UTC (rev 104779)
@@ -58,6 +58,12 @@
public WildcardClassLoaderPolicy(Domain domain, PackageRequirement requirement, Module module)
{
+ if (domain == null)
+ throw new IllegalArgumentException("Null domain");
+ if (requirement == null)
+ throw new IllegalArgumentException("Null reqirement");
+ if (module == null)
+ throw new IllegalArgumentException("Null module");
this.domain = domain;
this.requirement = requirement;
this.module = module;
More information about the jboss-cvs-commits
mailing list