Project: talenddataquality
Issue TDQ-8429: in demo project the first analysis--GenderAna can not genereate ETL job  correctly about the pattern(Email Address)
1. create a new project. 2. on the welcome page,click "Demos", on the pop up dialog select dq demo, and import it. 3. change the msyql configuration to your correct one. 4. run the fist analysis--enderAna. 5. focus on "Result page", right click on the pattern --> Email Address -->Generate Job, on the pop up dialog select the first one option. Expected Result: generate a job correctly. Actual Result: job can generated but the dialog still show. note: just create a new connection, and column analysis with pattern, the issue won't show. {code} java.lang.NullPointerException org.talend.designer.core.ui.editor.nodes.Node.checkSchema(Node.java:3410) org.talend.designer.core.ui.editor.nodes.Node.checkNode(Node.java:3685) org.talend.designer.core.ui.editor.nodes.Node.checkAndRefreshNode(Node.java:3676) org.talend.designer.core.ui.editor.cmd.QueryGuessCommand.execute(QueryGuessCommand.java:165) org.talend.datacleansing.core.ui.actions.IndicatorJobAction.setParameters(IndicatorJobAction.java:144) org.talend.datacleansing.core.ui.actions.pattern.PatternIndicatorJobAction.setParameters(PatternIndicatorJobAction.java:93) org.talend.datacleansing.core.ui.actions.pattern.PatternValidRowsJobAction.setParameters(PatternValidRowsJobAction.java:50) org.talend.datacleansing.core.ui.jobs.template.AJobAction.addTemplateNodes(AJobAction.java:295) org.talend.datacleansing.core.ui.jobs.template.AJobAction.doRun(AJobAction.java:153) org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:611) org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:93) org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:237) org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3197) org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:1979) org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:617) org.talend.datacleansing.core.ui.actions.IndicatorJobAction.run(IndicatorJobAction.java:327) org.talend.datacleansing.core.ui.actions.ui.pattern.PatternJobSelectWizard.performFinish(PatternJobSelectWizard.java:66) org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811) org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430) org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) org.eclipse.jface.window.Window.runEventLoop(Window.java:825) org.eclipse.jface.window.Window.open(Window.java:801) org.talend.datacleansing.core.ui.service.DatabaseJobService.createJobActon(DatabaseJobService.java:97) org.talend.datacleansing.core.ui.service.DatabaseJobService.executeJob(DatabaseJobService.java:77) org.talend.dataprofiler.core.ui.editor.preview.model.ChartTableFactory$1.widgetSelected(ChartTableFactory.java:152) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) org.talend.rcp.intro.Application.start(Application.java:145) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619) org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) org.eclipse.equinox.launcher.Main.run(Main.java:1407) {code}
Story points: 8