Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor V Rubezhny2013-10-29 14:25:50 +0000
committerChris2013-10-29 14:25:50 +0000
commit8650d5cd21dfbd40640d5f59991eadc0a458c290 (patch)
tree54fe5a2b51c03fac175289a99875955cad0ce006
parent76e83f3f11017b332a0a03ed7e4ce47524b1ea68 (diff)
downloadwebtools.maps-8650d5cd21dfbd40640d5f59991eadc0a458c290.tar.gz
webtools.maps-8650d5cd21dfbd40640d5f59991eadc0a458c290.tar.xz
webtools.maps-8650d5cd21dfbd40640d5f59991eadc0a458c290.zip
[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 6acd3c917..a25007548 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;
}

Back to the top