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

Bug 522176 - NullPointerException in DeltaAnalyzer.processResourceDelta

Change-Id: I25606e5c1f4e15e9048df139bb6a2e60f8214508
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
This commit is contained in:
Andrey Loskutov 2017-09-12 11:17:43 +02:00 committed by Nathan Ridge
parent dfd7a7164c
commit eb70c04ceb

View file

@ -91,6 +91,9 @@ public class DeltaAnalyzer {
Set<IResource> handled) { Set<IResource> handled) {
if (rDeltas != null) { if (rDeltas != null) {
for (IResourceDelta rd: rDeltas) { for (IResourceDelta rd: rDeltas) {
if (rd == null) {
continue;
}
final int rdkind = rd.getKind(); final int rdkind = rd.getKind();
if (rdkind != IResourceDelta.ADDED) { if (rdkind != IResourceDelta.ADDED) {
IResource res= rd.getResource(); IResource res= rd.getResource();