if (mainDelta == null) {
return;
}
if (mainDelta.getKind() == IResourceDelta.CHANGED
&& mainDelta.getResource().getType() == IResource.ROOT) {
<BUG>IResourceDelta[] children = mainDelta.getAffectedChildren();
Set projectsToUpdate = new HashSet();
for (int i = 0; i < children.length; i++) {
IResourceDelta delta = children[i];</BUG>
if (delta.getResource().getType() == IResource.PROJECT) {

if (mainDelta == null) {
return;
}
if (mainDelta.getKind() == IResourceDelta.CHANGED
&& mainDelta.getResource().getType() == IResource.ROOT) {
Set projectsToUpdate = new HashSet();
for (IResourceDelta delta : mainDelta.getAffectedChildren()) {
if (delta.getResource().getType() == IResource.PROJECT) {
