directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r828681 - /directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
Date Thu, 22 Oct 2009 13:35:12 GMT
Author: seelmann
Date: Thu Oct 22 13:35:12 2009
New Revision: 828681

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

Modified:
    directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java

Modified: directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java?rev=828681&r1=828680&r2=828681&view=diff
==============================================================================
--- directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
(original)
+++ directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
Thu Oct 22 13:35:12 2009
@@ -69,7 +69,7 @@
 
                     // close shells (open dialogs)
                     Shell activeShell = Display.getCurrent().getActiveShell();
-                    if ( activeShell != window.getShell() )
+                    if ( activeShell != null && activeShell != window.getShell()
)
                     {
                         activeShell.close();
                     }



Mime
View raw message