directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1242821 - /directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/CopyAction.java
Date Fri, 10 Feb 2012 15:29:51 GMT
Author: pamarcelot
Date: Fri Feb 10 15:29:51 2012
New Revision: 1242821

URL: http://svn.apache.org/viewvc?rev=1242821&view=rev
Log:
Fix for DIRSTUDIO-773 (IllegalArgumentException thrown when copying the RootDSE).

Modified:
    directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/CopyAction.java

Modified: directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/CopyAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/CopyAction.java?rev=1242821&r1=1242820&r2=1242821&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/CopyAction.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/CopyAction.java
Fri Feb 10 15:29:51 2012
@@ -248,7 +248,18 @@ public class CopyAction extends BrowserA
         try
         {
             clipboard = new Clipboard( Display.getCurrent() );
-            clipboard.setContents( data, dataTypes );
+
+            try
+            {
+                clipboard.setContents( data, dataTypes );
+            }
+            catch ( IllegalArgumentException e )
+            {
+                // Nothing to do.
+                // Preventing an error to be shown in the case of the RootDSE being copied
+                // See DIRSTUDIO-773 (IllegalArgumentException thrown when copying the RootDSE)
+                // https://issues.apache.org/jira/browse/DIRSTUDIO-773
+            }
         }
         finally
         {



Mime
View raw message