Project: talenddataquality
Issue TDQ-6587: rename the FileConnection sometimes, there will throw Exceptions
open the FileConnection wizard and click cancel first, if open the FileConnection wizard again and modify the name, there will throw Exceptions {code} java.lang.reflect.InvocationTargetException org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:477) org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507) org.talend.dataprofiler.core.ui.progress.ProgressUI.popProgressDialog(ProgressUI.java:54) org.talend.dataprofiler.core.ui.utils.pagination.PaginationInfo.renderContents(PaginationInfo.java:67) org.talend.dataprofiler.core.ui.utils.pagination.UIPagination.refresh(UIPagination.java:116) org.talend.dataprofiler.core.ui.utils.pagination.UIPagination.init(UIPagination.java:98) org.talend.dataprofiler.core.ui.editor.analysis.ColumnMasterDetailsPage.computePagination(ColumnMasterDetailsPage.java:417) org.talend.dataprofiler.core.ui.editor.analysis.ColumnMasterDetailsPage.createPaginationTree(ColumnMasterDetailsPage.java:368) org.talend.dataprofiler.core.ui.editor.analysis.ColumnMasterDetailsPage.createAnalysisColumnsSection(ColumnMasterDetailsPage.java:347) org.talend.dataprofiler.core.ui.editor.analysis.ColumnMasterDetailsPage.createFormContent(ColumnMasterDetailsPage.java:237) org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:152) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:150) org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:471) org.talend.dataprofiler.core.ui.editor.CommonFormEditor.pageChange(CommonFormEditor.java:231) org.talend.dataprofiler.core.ui.editor.analysis.AnalysisEditor.pageChange(AnalysisEditor.java:190) org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067) org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:603) org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:352) org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313) org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180) org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270) org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65) org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473) org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1254) org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207) org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606) org.eclipse.ui.internal.PartStack.add(PartStack.java:497) org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103) org.eclipse.ui.internal.PartStack.add(PartStack.java:483) org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112) org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63) org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225) org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213) org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778) org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677) org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2860) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768) org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760) org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674) org.talend.dataprofiler.core.CorePlugin.openEditor(CorePlugin.java:298) org.talend.dataprofiler.core.ui.action.actions.OpenItemEditorAction.duRun(OpenItemEditorAction.java:133) org.talend.dataprofiler.core.ui.action.actions.OpenItemEditorAction$1.run(OpenItemEditorAction.java:117) org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:84) org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:217) org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3011) org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:1851) org.talend.dataprofiler.core.ui.action.actions.OpenItemEditorAction.run(OpenItemEditorAction.java:124) org.talend.dataprofiler.core.ui.utils.WorkbenchUtils.refreshCurrentAnalysisEditor(WorkbenchUtils.java:393) org.talend.dataprofiler.core.service.TOPRepositoryService.refreshCurrentAnalysisEditor(TOPRepositoryService.java:514) org.talend.repository.ui.wizards.metadata.connection.files.delimited.DelimitedFileWizard.performFinish(DelimitedFileWizard.java:360) 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:1258) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) org.eclipse.jface.window.Window.runEventLoop(Window.java:825) org.eclipse.jface.window.Window.open(Window.java:801) org.talend.dataprofiler.core.ui.action.actions.EditFileDelimitedAction.run(EditFileDelimitedAction.java:55) org.talend.dataprofiler.core.ui.views.DQRespositoryView$6.mouseDoubleClick(DQRespositoryView.java:463) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:189) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) 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(Application.java:77) 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:616) 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) org.eclipse.equinox.launcher.Main.main(Main.java:1383) Caused by: java.lang.NullPointerException org.talend.dataprofiler.core.model.impl.ModelElementIndicatorImpl.getElementName(ModelElementIndicatorImpl.java:778) org.talend.dataprofiler.core.model.impl.DelimitedFileIndicatorImpl.getElementName(DelimitedFileIndicatorImpl.java:40) org.talend.dataprofiler.core.ui.editor.composite.AnalysisColumnTreeViewer.getModelElemetnDisplayName(AnalysisColumnTreeViewer.java:726) org.talend.dataprofiler.core.ui.editor.composite.AnalysisColumnTreeViewer.addItemElements(AnalysisColumnTreeViewer.java:514) org.talend.dataprofiler.core.ui.editor.composite.AnalysisColumnTreeViewer.setElements(AnalysisColumnTreeViewer.java:405) org.talend.dataprofiler.core.ui.editor.analysis.MasterPaginationInfo.render(MasterPaginationInfo.java:74) org.talend.dataprofiler.core.ui.utils.pagination.PaginationInfo$1.run(PaginationInfo.java:59) org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)	... 97 more {code}
Story points: 3