[
https://issues.jboss.org/browse/TEIIDDES-2009?page=com.atlassian.jira.plu...
]
Barry LaFond resolved TEIIDDES-2009.
------------------------------------
Resolution: Done
Added eObject.eIsProxy() check to prevent NPE. DONE
NPE deleting model objects
--------------------------
Key: TEIIDDES-2009
URL:
https://issues.jboss.org/browse/TEIIDDES-2009
Project: Teiid Designer
Issue Type: Bug
Components: Modeling
Affects Versions: 8.3
Reporter: Barry LaFond
Assignee: Barry LaFond
Fix For: 8.3.x
Deleted objects with a model editor open and got following:
{code}
java.lang.NullPointerException
at
org.teiid.designer.ui.viewsupport.ModelUtilities.getModelName(ModelUtilities.java:497)
at org.teiid.designer.ui.table.ModelRowElement.getValue(ModelRowElement.java:335)
at
org.teiid.designer.ui.table.ModelTableLabelProvider.getColumnText(ModelTableLabelProvider.java:40)
at
org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:152)
at
org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:400)
at
org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:485)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2167)
at
org.eclipse.jface.viewers.AbstractTableViewer.createItem(AbstractTableViewer.java:278)
at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:758)
at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:650)
at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:637)
at org.eclipse.jface.viewers.AbstractTableViewer$2.run(AbstractTableViewer.java:593)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
at
org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:591)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)
at
org.teiid.designer.ui.table.ModelObjectTableModel.buildColumns(ModelObjectTableModel.java:273)
at
org.teiid.designer.ui.table.ModelObjectTableModel.buildColumns(ModelObjectTableModel.java:214)
at
org.teiid.designer.ui.table.ModelObjectTableModel.removeRows(ModelObjectTableModel.java:326)
at
org.teiid.designer.ui.table.TableNotificationHandler.handleSingleEObjectNotification(TableNotificationHandler.java:264)
at
org.teiid.designer.ui.table.TableNotificationHandler.handleSingleNotification(TableNotificationHandler.java:202)
at
org.teiid.designer.ui.table.TableNotificationHandler.handleNotification(TableNotificationHandler.java:175)
at
org.teiid.designer.ui.table.TableNotificationHandler.notifyChanged(TableNotificationHandler.java:82)
at org.teiid.designer.ui.editors.ModelEditor$5.run(ModelEditor.java:1157)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3717)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3366)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at
org.teiid.designer.ui.actions.workers.DeleteWorker.executeCommand(DeleteWorker.java:211)
at org.teiid.designer.ui.actions.workers.DeleteWorker.execute(DeleteWorker.java:131)
at org.teiid.designer.ui.actions.ModelObjectAction.doRun(ModelObjectAction.java:62)
at org.teiid.designer.ui.actions.DeleteEObjectAction.doRun(DeleteEObjectAction.java:88)
at org.teiid.designer.ui.common.actions.AbstractAction$1.run(AbstractAction.java:544)
at
org.teiid.designer.ui.common.viewsupport.UiBusyIndicator$2$1.run(UiBusyIndicator.java:206)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3717)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3366)
at
org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.executeRunnable(UiBusyIndicator.java:227)
at
org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhileInternal(UiBusyIndicator.java:159)
at
org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhile(UiBusyIndicator.java:116)
at org.teiid.designer.ui.common.actions.AbstractAction.run(AbstractAction.java:547)
at org.teiid.designer.ui.actions.DeleteAction.doRun(DeleteAction.java:335)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira