- PasswordWizard wizard = new PasswordWizard(conversation, user);
- WizardDialog dialog = new WizardDialog(getLayoutComposite().getShell(), wizard);
-
- dialog.open();
+ if(!CdmStore.getService(IUserService.class).userExists(user.getUsername())) {
+ MessagingUtils.warningDialog("Username does not exist", this, "Please create or save user '" + user.getUsername() + "' before changing password");
+ } else {
+ PasswordWizard wizard = new PasswordWizard(user, conversation);
+ WizardDialog dialog = new WizardDialog(getLayoutComposite().getShell(), wizard);
+ dialog.open();
+ }