mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 11:55:40 +02:00
[187713] Rupen's patch for checking to see if target is null
This commit is contained in:
parent
ea0c061e2c
commit
2eeda90ebc
1 changed files with 10 additions and 3 deletions
|
@ -13,6 +13,7 @@
|
|||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
* Martin Oberhuber (Wind River) - [186128][refactoring] Move IProgressMonitor last in public base classes
|
||||
* Rupen Mardirossian (IBM) - [187713] Check to see if target is null before attempting to retrieve targetAdapter in tranferRSEResources method (line 248)
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -243,9 +244,15 @@ public class SystemDNDTransferRunnable extends WorkspaceJob
|
|||
ISubSystemConfiguration factory = targetSubSystem.getSubSystemConfiguration();
|
||||
if (factory.supportsDropInFilters())
|
||||
{
|
||||
target = targetSubSystem.getTargetForFilter((ISystemFilterReference)target);
|
||||
targetAdapter = (ISystemDragDropAdapter) ((IAdaptable) target).getAdapter(ISystemDragDropAdapter.class);
|
||||
|
||||
target = targetSubSystem.getTargetForFilter((ISystemFilterReference)target);
|
||||
if (target == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
targetAdapter = (ISystemDragDropAdapter) ((IAdaptable) target).getAdapter(ISystemDragDropAdapter.class);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (targetAdapter.validateDrop(set, target, (targetSubSystem == srcSubSystem)))
|
||||
|
|
Loading…
Add table
Reference in a new issue