Remove dependency with workbench
[lgpl/argeo-commons.git] / org.argeo.security.ui / src / org / argeo / security / ui / dialogs / AbstractLoginDialog.java
index 7c7e0c6b6cb4a0547ef37ed84ea2471ea1e61bb0..a68d50e248b7ef328756bf338f87b584ed6d622c 100644 (file)
@@ -135,7 +135,7 @@ public abstract class AbstractLoginDialog extends TrayDialog implements
                                        // event).
                                        while (!processCallbacks && (modalContextThread != null)
                                                        && (modalContextThread == Thread.currentThread())
-                                                       && SecurityUiPlugin.getDefault() != null) {
+                                                       && SecurityUiPlugin.getBundleContext() != null) {
                                                // Note: SecurityUiPlugin.getDefault() != null is false
                                                // when the OSGi runtime is shut down
                                                try {