1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00

[339282] SystemResourceSelectionForm.selectionChanged() should check for null subsystem

This commit is contained in:
David McKnight 2011-03-08 21:18:00 +00:00
parent 701637eef6
commit 5184c0e4d9

View file

@ -1,5 +1,5 @@
/******************************************************************************** /********************************************************************************
* Copyright (c) 2006, 2009 IBM Corporation and others. All rights reserved. * Copyright (c) 2006, 2011 IBM Corporation and others. All rights reserved.
* This program and the accompanying materials are made available under the terms * This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is * of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html * available at http://www.eclipse.org/legal/epl-v10.html
@ -20,6 +20,7 @@
* David Dykstal (IBM) - [232130] meaningless label provided for filter references * David Dykstal (IBM) - [232130] meaningless label provided for filter references
* David McKnight (IBM) - [244430] [regression] Incorrect behaviour for SystemSelectRemoteFolderAction * David McKnight (IBM) - [244430] [regression] Incorrect behaviour for SystemSelectRemoteFolderAction
* David McKnight (IBM) - [267061] resource dialog/form to allow custom host combo label * David McKnight (IBM) - [267061] resource dialog/form to allow custom host combo label
* David McKnight (IBM) - [339282] SystemResourceSelectionForm.selectionChanged() should check for null subsystem
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.internal.ui.view; package org.eclipse.rse.internal.ui.view;
@ -534,11 +535,13 @@ public class SystemResourceSelectionForm implements ISelectionChangedListener
setPathTextFromSelection(selectedObject); setPathTextFromSelection(selectedObject);
outputObjects = getSelections(selection); outputObjects = getSelections(selection);
outputConnection = elementAdapter.getSubSystem(selectedObject).getHost(); ISubSystem ss = elementAdapter.getSubSystem(selectedObject);
if (ss != null){
outputConnection = ss.getHost();
_history.put(outputConnection, previousSelection); _history.put(outputConnection, previousSelection);
} }
} }
}
if (_selectionValidator != null) if (_selectionValidator != null)