directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r926136 - /directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java
Date Mon, 22 Mar 2010 15:35:06 GMT
Author: seelmann
Date: Mon Mar 22 15:35:05 2010
New Revision: 926136

URL: http://svn.apache.org/viewvc?rev=926136&view=rev
Log:
Fix for DIRSTUDIO-639 ( Exception when navigation history contains bookmarks of an deleted
connection)

Modified:
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java?rev=926136&r1=926135&r2=926136&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java
Mon Mar 22 15:35:05 2010
@@ -34,6 +34,7 @@ import org.apache.directory.studio.ldapb
 import org.apache.directory.studio.ldapbrowser.core.model.IAttribute;
 import org.apache.directory.studio.ldapbrowser.core.model.IBrowserConnection;
 import org.apache.directory.studio.ldapbrowser.core.model.IEntry;
+import org.apache.directory.studio.ldapbrowser.core.model.schema.Schema;
 import org.apache.directory.studio.ldapbrowser.core.utils.Utils;
 import org.eclipse.search.ui.ISearchPageScoreComputer;
 
@@ -96,7 +97,7 @@ public abstract class DelegateEntry impl
             .getBrowserConnectionById( connectionId );
         if ( browserConnection == null )
         {
-            throw new IllegalStateException( "Connection " + connectionId + " does not exist."
);
+            browserConnection = new DummyConnection( Schema.DEFAULT_SCHEMA );
         }
 
         // always get the fresh entry from cache
@@ -139,7 +140,7 @@ public abstract class DelegateEntry impl
                 .getBrowserConnectionById( connectionId );
             if ( browserConnection == null )
             {
-                throw new IllegalStateException( "Connection " + connectionId + " does not
exist." );
+                browserConnection = new DummyConnection( Schema.DEFAULT_SCHEMA );
             }
             return browserConnection;
         }



Mime
View raw message