Project: talenddataquality
Issue TDQ-9283: rename dbconneciton when match analysis editor open, get error.
1. create a dbconnection. 2. create a match analysis. 3. when match analysis editor open, rename dbconnection. THIS issue also show on 551 build. Expected Result: should rename correctly. Actual Result: get error in error log and a dialog pop up. {code} java.lang.NullPointerException org.talend.dataprofiler.core.ui.editor.analysis.AbstractAnalysisMetadataPage.reloadDataproviderAndFillConnCombo(Unknown Source) org.talend.dataprofiler.core.ui.editor.analysis.AnalysisEditor$3.handle(Unknown Source) org.talend.dataprofiler.core.ui.events.EventManager.publish(Unknown Source) org.talend.dataprofiler.core.ui.utils.WorkbenchUtils.nodifyDependedAnalysis(Unknown Source) org.talend.dataprofiler.core.ui.editor.connection.ConnectionEditor.doSave(Unknown Source) org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:151) org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:277) org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464) org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756) org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2600) org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:285) org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:264) org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:156) org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1369) org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3334) org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3347) org.eclipse.ui.internal.SaveAction.run(SaveAction.java:76) org.eclipse.jface.action.Action.runWithEvent(Action.java:498) org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119) org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468) org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786) org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885) org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567) org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508) org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Display.filterEvent(Display.java:1253) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062) org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1103) org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1427) org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1099) org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1508) org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4268) org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2175) org.eclipse.swt.widgets.Control.windowProc(Control.java:4160) org.eclipse.swt.widgets.Text.windowProc(Text.java:2170) org.eclipse.swt.widgets.Display.windowProc(Display.java:4873) org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655) 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.dataprofiler.rcp.intro.Application.start(Unknown Source) 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:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) 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: 5