continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r447787 - /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java
Date Tue, 19 Sep 2006 09:01:17 GMT
Author: carlos
Date: Tue Sep 19 02:01:17 2006
New Revision: 447787

URL: http://svn.apache.org/viewvc?view=rev&rev=447787
Log:
Added checking on checkProgress() as listener becomes null when the user clicks on the refresh
button and progress is already finished.
Submitted By: Teodoro Cue

Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java?view=diff&rev=447787&r1=447786&r2=447787
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java
Tue Sep 19 02:01:17 2006
@@ -186,7 +186,7 @@
 
         listener = (ContinuumReleaseManagerListener) releaseManager.getListeners().get( releaseId
);
 
-        if ( listener.getState() == ContinuumReleaseManagerListener.FINISHED )
+        if ( listener == null || ( listener.getState() == ContinuumReleaseManagerListener.FINISHED
) )
         {
             releaseManager.getListeners().remove( releaseId );
 



Mime
View raw message