directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1214238 - /directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AbstractAliasesDialog.java
Date Wed, 14 Dec 2011 13:36:26 GMT
Author: pamarcelot
Date: Wed Dec 14 13:36:26 2011
New Revision: 1214238

URL: http://svn.apache.org/viewvc?rev=1214238&view=rev
Log:
Fixed a potential infinite loop in case where the text editor was already disposed.

Modified:
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AbstractAliasesDialog.java

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AbstractAliasesDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AbstractAliasesDialog.java?rev=1214238&r1=1214237&r2=1214238&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AbstractAliasesDialog.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AbstractAliasesDialog.java
Wed Dec 14 13:36:26 2011
@@ -381,7 +381,7 @@ public abstract class AbstractAliasesDia
     private void saveTableEditorText()
     {
         Text text = ( Text ) tableEditor.getEditor();
-        if ( text != null )
+        if ( ( text != null ) && ( !text.isDisposed() ) )
         {
             TableItem item = tableEditor.getItem();
             String oldText = item.getText();
@@ -408,7 +408,7 @@ public abstract class AbstractAliasesDia
     private void closeTableEditor()
     {
         Text text = ( Text ) tableEditor.getEditor();
-        if ( text != null )
+        if ( ( text != null ) && ( !text.isDisposed() ) )
         {
             saveTableEditorText();
             text.dispose();



Mime
View raw message