diff options
author | Victor V Rubezhny | 2013-10-29 14:25:50 +0000 |
---|---|---|
committer | Chris | 2013-10-29 14:25:50 +0000 |
commit | 8650d5cd21dfbd40640d5f59991eadc0a458c290 (patch) | |
tree | 54fe5a2b51c03fac175289a99875955cad0ce006 | |
parent | 76e83f3f11017b332a0a03ed7e4ce47524b1ea68 (diff) | |
download | webtools.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.java | 5 |
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; } |