Return-Path: Delivered-To: apmail-maven-continuum-commits-archive@www.apache.org Received: (qmail 42341 invoked from network); 16 Aug 2006 16:36:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2006 16:36:05 -0000 Received: (qmail 61832 invoked by uid 500); 16 Aug 2006 16:36:03 -0000 Delivered-To: apmail-maven-continuum-commits-archive@maven.apache.org Received: (qmail 61811 invoked by uid 500); 16 Aug 2006 16:36:03 -0000 Mailing-List: contact continuum-commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-dev@maven.apache.org Delivered-To: mailing list continuum-commits@maven.apache.org Received: (qmail 61783 invoked by uid 99); 16 Aug 2006 16:36:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2006 09:36:03 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2006 09:36:00 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 3242E1A981A; Wed, 16 Aug 2006 09:35:40 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r431940 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java Date: Wed, 16 Aug 2006 16:35:39 -0000 To: continuum-commits@maven.apache.org From: carlos@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060816163540.3242E1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: carlos Date: Wed Aug 16 09:35:39 2006 New Revision: 431940 URL: http://svn.apache.org/viewvc?rev=431940&view=rev Log: [CONTINUUM-818] ContinuumObjectNotFoundException is thrown by the buildResult.action if a project isn't built yet. Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=431940&r1=431939&r2=431940&view=diff ============================================================================== --- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java (original) +++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java Wed Aug 16 09:35:39 2006 @@ -623,6 +623,10 @@ { buildResults = new ArrayList( store.getProjectWithBuilds( projectId ).getBuildResults() ); } + catch ( ContinuumObjectNotFoundException e ) + { + return Collections.EMPTY_LIST; + } catch ( ContinuumStoreException e ) { throw logAndCreateException( "Exception while getting build results for project.", e );