1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 07:15:39 +02:00

[251631] NullPointerException in SystemTempFileListener

This commit is contained in:
David McKnight 2008-11-06 16:04:35 +00:00
parent a9d3159e1e
commit 2095797a08

View file

@ -156,11 +156,14 @@ public abstract class SystemTempFileListener implements IResourceChangeListener
} }
else else
{ {
if (file.isLinked(IResource.CHECK_ANCESTORS)){ IPath location = file.getLocation();
if (location == null){
// linked into remote file system -- ignore in tempfile listener
return true; return true;
} }
else { else {
String path = file.getLocation().toString().toLowerCase(); String path = location.toString().toLowerCase();
for (int i = 0; i < _ignoredFiles.size(); i++) for (int i = 0; i < _ignoredFiles.size(); i++)
{ {