mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
PL-7761 NPE occurs during an attempt to open "help - change password" dialog in desktop application
This commit is contained in:
parent
21b64a309c
commit
3606b7d7c3
@ -25,17 +25,12 @@ import com.haulmont.cuba.gui.WindowManager.OpenType;
|
||||
import com.haulmont.cuba.gui.config.WindowConfig;
|
||||
import com.haulmont.cuba.gui.config.WindowInfo;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
public class ChangePasswordLauncher implements Runnable {
|
||||
|
||||
@Inject
|
||||
protected WindowConfig windowConfig;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
WindowManager wm = App.getInstance().getMainFrame().getWindowManager();
|
||||
|
||||
WindowConfig windowConfig = AppBeans.get(WindowConfig.NAME);
|
||||
WindowInfo windowInfo = windowConfig.getWindowInfo("sec$User.changePassword");
|
||||
|
||||
wm.openWindow(windowInfo, OpenType.DIALOG, ParamsMap.of("currentPasswordRequired", true));
|
||||
|
Loading…
Reference in New Issue
Block a user