mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 15:25:49 +02:00
[251631] NullPointerException in SystemTempFileListener
This commit is contained in:
parent
59bd3f174e
commit
10d76ae7a2
1 changed files with 18 additions and 10 deletions
|
@ -23,6 +23,7 @@
|
||||||
* David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
* David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
||||||
* David McKnight (IBM) - [225747] [dstore] Trying to connect to an "Offline" system throws an NPE
|
* David McKnight (IBM) - [225747] [dstore] Trying to connect to an "Offline" system throws an NPE
|
||||||
* David McKnight (IBM) - [235221] Files truncated on exit of Eclipse
|
* David McKnight (IBM) - [235221] Files truncated on exit of Eclipse
|
||||||
|
* David McKnight (IBM) - [251631] NullPointerException in SystemTempFileListener
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.files.ui.resources;
|
package org.eclipse.rse.files.ui.resources;
|
||||||
|
@ -155,20 +156,27 @@ public abstract class SystemTempFileListener implements IResourceChangeListener
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
String path = file.getLocation().toString().toLowerCase();
|
if (file.isLinked()){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
String path = file.getLocation().toString().toLowerCase();
|
||||||
|
|
||||||
for (int i = 0; i < _ignoredFiles.size(); i++)
|
for (int i = 0; i < _ignoredFiles.size(); i++)
|
||||||
{
|
{
|
||||||
IFile cfile = (IFile)_ignoredFiles.get(i);
|
IFile cfile = (IFile)_ignoredFiles.get(i);
|
||||||
String cpath = cfile.getLocation().toString().toLowerCase();
|
String cpath = cfile.getLocation().toString().toLowerCase();
|
||||||
if (path.equals(cpath))
|
if (path.equals(cpath))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see IResourceChangeListener#resourceChanged(IResourceChangeEvent)
|
* @see IResourceChangeListener#resourceChanged(IResourceChangeEvent)
|
||||||
|
|
Loading…
Add table
Reference in a new issue