summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor V Rubezhny2013-10-29 10:25:50 (EDT)
committerChris2013-10-29 10:25:50 (EDT)
commit8650d5cd21dfbd40640d5f59991eadc0a458c290 (patch)
tree54fe5a2b51c03fac175289a99875955cad0ce006
parent76e83f3f11017b332a0a03ed7e4ce47524b1ea68 (diff)
downloadwebtools.jsdt.core-8650d5cd21dfbd40640d5f59991eadc0a458c290.zip
webtools.jsdt.core-8650d5cd21dfbd40640d5f59991eadc0a458c290.tar.gz
webtools.jsdt.core-8650d5cd21dfbd40640d5f59991eadc0a458c290.tar.bz2
[420533] ClassCastException when getting validation participants
-rw-r--r--bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/JavaModelManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/JavaModelManager.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/JavaModelManager.java
index 6acd3c9..a250075 100644
--- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/JavaModelManager.java
+++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/JavaModelManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -333,7 +333,8 @@ public class JavaModelManager implements ISaveParticipant, IContentTypeChangeLis
}
});
}
- ValidationParticipant participant = (ValidationParticipant) participants[i];
+ ValidationParticipant participant = participants[i] instanceof ValidationParticipant ?
+ (ValidationParticipant) participants[i] : null;
if (participant != null && participant.isActive(project))
result[index++] = participant;
}