mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
[339282] SystemResourceSelectionForm.selectionChanged() should check for null subsystem
This commit is contained in:
parent
701637eef6
commit
5184c0e4d9
1 changed files with 7 additions and 4 deletions
|
@ -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,9 +535,11 @@ 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){
|
||||||
_history.put(outputConnection, previousSelection);
|
outputConnection = ss.getHost();
|
||||||
|
_history.put(outputConnection, previousSelection);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue