continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r219415 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java
Date Sun, 17 Jul 2005 22:45:49 GMT
Author: trygvis
Date: Sun Jul 17 15:45:46 2005
New Revision: 219415

URL: http://svn.apache.org/viewcvs?rev=219415&view=rev
Log:
o Improving error message when the key is missing. This is different from when the value is
null.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java?rev=219415&r1=219414&r2=219415&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java
Sun Jul 17 15:45:46 2005
@@ -226,6 +226,11 @@
 
     private static Object getObject( Map context, String key )
     {
+        if ( !context.containsKey( key ) )
+        {
+            throw new RuntimeException( "Missing key '" + key + "'." );
+        }
+
         Object value = context.get( key );
 
         if ( value == null )



Mime
View raw message