1
0
Fork 0
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:
David McKnight 2008-04-28 19:50:16 +00:00
parent 7a2d309eb8
commit 9332a42fdd
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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);
}