mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
[229116] NPE in when editing remote file in new workspace
This commit is contained in:
parent
7a2d309eb8
commit
9332a42fdd
2 changed files with 3 additions and 1 deletions
|
@ -893,6 +893,8 @@ public class SystemRegistry implements ISystemRegistry
|
|||
* @since org.eclipse.rse.core 3.0
|
||||
*/
|
||||
public static ISystemDragDropAdapter getSystemDragDropAdapter(Object element) {
|
||||
if (element == null)
|
||||
return null;
|
||||
Object adapter = null;
|
||||
if (element instanceof IAdaptable) {
|
||||
IAdaptable adaptable = (IAdaptable) element;
|
||||
|
|
|
@ -1676,7 +1676,7 @@ public class SystemTableViewPart extends ViewPart
|
|||
// right now assuming only one resource
|
||||
String oldName = (oldNames == null) ? null : oldNames[0];
|
||||
boolean referToSameObject = false;
|
||||
if (oldName != null){
|
||||
if (input != null && oldName != null){
|
||||
referToSameObject = SystemRegistry.isSameObjectByAbsoluteName(input, null, child, oldName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue