1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-29 03:03:10 +02:00

[289533] NPE on "Show in Table"

This commit is contained in:
Martin Oberhuber 2009-09-15 21:44:07 +00:00
parent 43af27a74a
commit 8c14762da2

View file

@ -23,6 +23,7 @@
* Martin Oberhuber (Wind River) - [227516] [regression] Fix ArrayIndexOutOfBoundsException in TableView * Martin Oberhuber (Wind River) - [227516] [regression] Fix ArrayIndexOutOfBoundsException in TableView
* David McKnight (IBM) - [187058] Incorrect Right Click Menu in Remote System Details View with no selection * David McKnight (IBM) - [187058] Incorrect Right Click Menu in Remote System Details View with no selection
* David McKnight (IBM) - [260346] RSE view for jobs does not remember resized columns * David McKnight (IBM) - [260346] RSE view for jobs does not remember resized columns
* Martin Oberhuber (Wind River) - [289533] NPE on "Show in Table"
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.ui.view; package org.eclipse.rse.ui.view;
@ -443,12 +444,14 @@ public class SystemTableView
int[] lastWidths = getCurrentColumnWidths(); int[] lastWidths = getCurrentColumnWidths();
if (lastWidths.length > 0){ if (lastWidths.length > 0){
ISystemViewElementAdapter contentsAdapter = getAdapterForContents(); ISystemViewElementAdapter contentsAdapter = getAdapterForContents();
if (contentsAdapter != null) {
// no use caching anything when there were no children
String adapterName = contentsAdapter.getClass().getName(); String adapterName = contentsAdapter.getClass().getName();
// associate the last contents adapter with the last widths // associate the last contents adapter with the last widths
_cachedColumnWidths.put(adapterName, lastWidths); _cachedColumnWidths.put(adapterName, lastWidths);
} }
}
_objectInput = newObject; _objectInput = newObject;
computeLayout(); computeLayout();