continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1598247 - /continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java
Date Thu, 29 May 2014 10:31:08 GMT
Author: brett
Date: Thu May 29 10:31:08 2014
New Revision: 1598247

URL: http://svn.apache.org/r1598247
Log:
[CONTINUUM-2669] prevent null username

Modified:
    continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java

Modified: continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java?rev=1598247&r1=1598246&r2=1598247&view=diff
==============================================================================
--- continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java
(original)
+++ continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java
Thu May 29 10:31:08 2014
@@ -248,7 +248,14 @@ public class DistributedBuildProjectTask
 
                 if ( buildTrigger.getTrigger() == ContinuumProjectState.TRIGGER_FORCED )
                 {
-                    context.put( ContinuumBuildConstant.KEY_USERNAME, buildTrigger.getTriggeredBy()
);
+                    if ( buildTrigger.getTriggeredBy() == null )
+                    {
+                        context.put( ContinuumBuildConstant.KEY_USERNAME, "" );
+                    }
+                    else
+                    {
+                        context.put( ContinuumBuildConstant.KEY_USERNAME, buildTrigger.getTriggeredBy()
);
+                    }
                 }
                 else
                 {



Mime
View raw message