directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r822819 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
Date Wed, 07 Oct 2009 18:17:19 GMT
Author: seelmann
Date: Wed Oct  7 18:17:19 2009
New Revision: 822819

URL: http://svn.apache.org/viewvc?rev=822819&view=rev
Log:
Fixed NullPointerException

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java?rev=822819&r1=822818&r2=822819&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
Wed Oct  7 18:17:19 2009
@@ -656,7 +656,7 @@
             for ( IEditorReference ref : activePage.getEditorReferences() )
             {
                 IEntryEditor editor = getEntryEditor( ref );
-                if ( editor != null )
+                if ( editor != null && editor.getEntryEditorInput().getResolvedEntry()
!= null )
                 {
                     IBrowserConnection bc = editor.getEntryEditorInput().getResolvedEntry().getBrowserConnection();
                     if ( connection.equals( bc.getConnection() ) )



Mime
View raw message