You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2004/01/01 14:06:13 UTC
cvs commit: avalon/merlin/composition/api/src/java/org/apache/avalon/composition/data DeploymentProfile.java
mcconnell 2004/01/01 05:06:13
Modified: merlin/composition/api/src/java/org/apache/avalon/composition/data
DeploymentProfile.java
Log:
Add a null check on the classname parameter.
Revision Changes Path
1.7 +8 -3 avalon/merlin/composition/api/src/java/org/apache/avalon/composition/data/DeploymentProfile.java
Index: DeploymentProfile.java
===================================================================
RCS file: /home/cvs/avalon/merlin/composition/api/src/java/org/apache/avalon/composition/data/DeploymentProfile.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DeploymentProfile.java 14 Dec 2003 14:09:59 -0000 1.6
+++ DeploymentProfile.java 1 Jan 2004 13:06:13 -0000 1.7
@@ -232,6 +232,11 @@
{
super( name, activation, mode );
+ if( null == classname )
+ {
+ throw new NullPointerException( "classname" );
+ }
+
m_collection = collection;
m_classname = classname;
m_categories = categories;
@@ -239,7 +244,7 @@
m_parameters = parameters;
m_configuration = config;
- if( dependencies == null )
+ if( null == dependencies )
{
m_dependencies = new DependencyDirective[0];
}
@@ -248,7 +253,7 @@
m_dependencies = dependencies;
}
- if( stages == null )
+ if( null == stages )
{
m_stages = new StageDirective[0];
}
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org