directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r683166 - /directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java
Date Wed, 06 Aug 2008 08:39:12 GMT
Author: seelmann
Date: Wed Aug  6 01:39:11 2008
New Revision: 683166

URL: http://svn.apache.org/viewvc?rev=683166&view=rev
Log:
Fixed potential NPE

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=683166&r1=683165&r2=683166&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
Wed Aug  6 01:39:11 2008
@@ -744,6 +744,14 @@
      */
     public void entryUpdated( EntryModificationEvent event )
     {
+        IBrowserConnection conn = BrowserCorePlugin.getDefault().getConnectionManager().getBrowserConnectionById(
+            connectionId );
+        if ( conn == null )
+        {
+            EventRegistry.removeEntryUpdateListener( this );
+            return;
+        }
+        
         if ( event.getModifiedEntry() == getDelegate() )
         {
             if ( event instanceof AttributeAddedEvent )



Mime
View raw message