Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361650 - [LML] NullPointerException in TableHandler#changeTableColumnsWidth
Summary: [LML] NullPointerException in TableHandler#changeTableColumnsWidth
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: 6.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Claudia Knobloch CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 09:53 EDT by Greg Watson CLA
Modified: 2012-09-21 11:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Watson CLA 2011-10-21 09:53:30 EDT
In some cases, when I start a resource manager, the columns displayed in the jobs view are all set to some minimum size. This seems to occur on the jobs view that is not currently visible when the RM is started. 

If the RM is then stopped, I get the following NPE:

java.lang.NullPointerException
	at org.eclipse.ptp.rm.lml.internal.core.model.TableHandler.changeTableColumnsWidth(TableHandler.java:100)
	at org.eclipse.ptp.rm.lml.ui.views.TableView.saveColumnLayout(TableView.java:808)
	at org.eclipse.ptp.rm.lml.ui.views.TableView.access$10(TableView.java:804)
	at org.eclipse.ptp.rm.lml.ui.views.TableView$LMLTableListListener$2.run(TableView.java:115)
	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.ptp.rm.lml.ui.UIUtils$7.run(UIUtils.java:194)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4613)
	at org.eclipse.ptp.rm.lml.ui.UIUtils.safeRunSyncInUIThread(UIUtils.java:192)
	at org.eclipse.ptp.rm.lml.ui.views.TableView$LMLTableListListener.handleEvent(TableView.java:108)
	at org.eclipse.ptp.rm.lml.core.LMLManager.fireRemovedLgui(LMLManager.java:302)
	at org.eclipse.ptp.rm.lml.core.LMLManager.getCurrentLayout(LMLManager.java:118)
	at org.eclipse.ptp.rm.lml.monitor.core.LMLResourceManagerMonitor.doShutdown(LMLResourceManagerMonitor.java:302)
	at org.eclipse.ptp.rmsystem.AbstractResourceManagerMonitor.stop(AbstractResourceManagerMonitor.java:147)
	at org.eclipse.ptp.rmsystem.AbstractResourceManager.doShutdown(AbstractResourceManager.java:470)
	at org.eclipse.ptp.rmsystem.AbstractResourceManager.stop(AbstractResourceManager.java:408)
	at org.eclipse.ptp.ui.views.ResourceManagerView$2.doubleClick(ResourceManagerView.java:590)
	at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845)
	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.fireDoubleClick(StructuredViewer.java:843)
	at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1469)
	at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246)
	at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)
	at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:970)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:886)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:90)
	at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:559)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:519)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:624)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1431)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1407)
Comment 1 Wyatt Spear CLA 2011-10-27 11:55:53 EDT
I have this issue with squished columns as well on Ubuntu Linux.  In some cases after adjusting a column all of the columns gradually re-size themselves so all but the rightmost are as small as possible.