Author: jm
Date: 2012-08-15 19:22:25 -0700 (Wed, 15 Aug 2012)
New Revision: 30205

Modified:
   
core3/impl/trunk/work-impl/src/main/java/org/cytoscape/work/internal/sync/SyncTunableHandler.java
Log:
Fixes #1372: SyncTunableHandler only attempts to write Tunables that have 
corresponding entries in the value map

Modified: 
core3/impl/trunk/work-impl/src/main/java/org/cytoscape/work/internal/sync/SyncTunableHandler.java
===================================================================
--- 
core3/impl/trunk/work-impl/src/main/java/org/cytoscape/work/internal/sync/SyncTunableHandler.java
   2012-08-16 00:31:57 UTC (rev 30204)
+++ 
core3/impl/trunk/work-impl/src/main/java/org/cytoscape/work/internal/sync/SyncTunableHandler.java
   2012-08-16 02:22:25 UTC (rev 30205)
@@ -22,7 +22,9 @@
        @Override
        public void handle() {
                try {
-                       setValue(valueMap.get(getName()));
+                       if (valueMap.containsKey(getName())) {
+                               setValue(valueMap.get(getName()));
+                       }
                } catch (Exception e) {
                        throw new RuntimeException("Exception setting tunable 
value.", e);
                }

-- 
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.

Reply via email to