continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r170481 - /maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/CallApplicationModel.java
Date Mon, 16 May 2005 22:13:07 GMT
Author: jvanzyl
Date: Mon May 16 15:13:06 2005
New Revision: 170481

URL: http://svn.apache.org/viewcvs?rev=170481&view=rev
Log:
o adding better error checking/logging 

Modified:
    maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/CallApplicationModel.java

Modified: maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/CallApplicationModel.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/CallApplicationModel.java?rev=170481&r1=170480&r2=170481&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/CallApplicationModel.java
(original)
+++ maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/CallApplicationModel.java
Mon May 16 15:13:06 2005
@@ -49,7 +49,21 @@
 
         String cid = (String) parameters.get( CID );
 
+        if ( cid == null )
+        {
+            getLogger().error( "We cannot call the application with a null CID!" );
+
+            return;
+        }
+
         Call call = (Call) callMap.get( cid );
+
+        if ( call == null )
+        {
+            getLogger().error( "There is no call with id = " + cid + "!" );
+
+            return;                        
+        }
 
         String expression = call.getExpression();
 



Mime
View raw message