Author: mareshkau
Date: 2010-02-08 13:24:25 -0500 (Mon, 08 Feb 2010)
New Revision: 20187
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5812
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2010-02-08
18:19:21 UTC (rev 20186)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2010-02-08
18:24:25 UTC (rev 20187)
@@ -526,6 +526,8 @@
// refresh job in time, so we just ignore
// this exception
}
+ } catch(ClassCastException ex) {
+ VpePlugin.getDefault().reportProblem(ex);
}
getChangeEvents().remove(eventBean);
}
@@ -652,7 +654,7 @@
* comment node adding, it is already updated in {@code
* INodeNotifier.REMOVE} case.
*/
- if (Node.COMMENT_NODE != ((Node) newValue).getNodeType()) {
+ if (newValue instanceof Node && Node.COMMENT_NODE != ((Node)
newValue).getNodeType()) {
/*
* we should remove all parent nodes from vpe cash
*/