felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r819315 - /felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/repository/RepositoryConfiguration.java
Date Sun, 27 Sep 2009 14:11:58 GMT
Author: dsavage
Date: Sun Sep 27 14:11:58 2009
New Revision: 819315

URL: http://svn.apache.org/viewvc?rev=819315&view=rev
Log:
log error vs throwing illegal state which locks up rest of IDE (FELIX-1647)

Modified:
    felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/repository/RepositoryConfiguration.java

Modified: felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/repository/RepositoryConfiguration.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/repository/RepositoryConfiguration.java?rev=819315&r1=819314&r2=819315&view=diff
==============================================================================
--- felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/repository/RepositoryConfiguration.java
(original)
+++ felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/model/repository/RepositoryConfiguration.java
Sun Sep 27 14:11:58 2009
@@ -172,9 +172,11 @@
         {   
             IRepositoryModel rep = findRepository( s );
             if ( rep == null ) {
-                throw new IllegalStateException( "Missing repository for " + s );
+                SigilCore.error( "Missing repository for " + s );
+            }
+            else {
+                reps.add( rep );
             }
-            reps.add( rep );
         }
         return new RepositorySet( reps );
     }



Mime
View raw message