Author: mareshkau
Date: 2008-06-20 12:22:02 -0400 (Fri, 20 Jun 2008)
New Revision: 8874
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2390
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 2008-06-20
13:38:15 UTC (rev 8873)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-06-20
16:22:02 UTC (rev 8874)
@@ -461,7 +461,15 @@
//when update visual editor job is running, we shoud ignore this
//exception
break;
- }
+ } catch (NullPointerException ex) {
+
+ if(switcher!=null ) {
+ throw ex;
+ } else {
+ //class was disposed and exception result of that we can't stop
+ //refresh job in time, so we just ignore this exception
+ }
+ }
getChangeEvents().remove(eventBean);
}
monitor.done();
@@ -1597,6 +1605,16 @@
monitor.beginTask(VpeUIMessages.VPE_VISUAL_REFRESH_JOB,
IProgressMonitor.UNKNOWN);
visualRefreshImpl();
monitor.done();
+ } catch (VpeDisposeException exc) {
+ //just ignore this exception
+ } catch (NullPointerException ex) {
+
+ if(switcher!=null ) {
+ throw ex;
+ } else {
+ //class was disposed and exception result of that we can't stop
+ //refresh job in time, so we just ignore this exception
+ }
} finally {
if(switcher!=null) {