Author: mes
Date: 2010-09-10 12:21:32 -0700 (Fri, 10 Sep 2010)
New Revision: 21793
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
Log:
added proper taskMonitor error handling
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
2010-09-10 19:01:50 UTC (rev 21792)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/task/SwingTaskManager.java
2010-09-10 19:21:32 UTC (rev 21793)
@@ -143,9 +143,11 @@
break;
}
} catch (Exception exception) {
+ if (taskMonitor == null)
+ taskMonitor = new
SwingTaskMonitor(cancelExecutorService, owner);
taskMonitor.showException(exception);
}
- if (taskMonitor.isOpened() &&
!taskMonitor.isShowingException())
+ if (taskMonitor != null &&
taskMonitor.isOpened() && !taskMonitor.isShowingException())
taskMonitor.close();
}
};
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.