]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/DefaultExecutionFlowDescriptorConverter.java
Fix unregistered attribute
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / DefaultExecutionFlowDescriptorConverter.java
index b940f74018c1e68d4500ba3d9832cf3d57d3ffd0..8e096075147b778e2dd9547163b04bb61a7877b5 100644 (file)
@@ -74,6 +74,10 @@ public class DefaultExecutionFlowDescriptorConverter implements
                                ExecutionSpecAttribute attribute = executionSpec
                                                .getAttributes().get(key);
 
+                               if (attribute == null)
+                                       throw new SlcException("No spec attribute defined for '"
+                                                       + key + "'");
+
                                if (attribute.getIsFrozen())
                                        continue values;
 
@@ -130,7 +134,7 @@ public class DefaultExecutionFlowDescriptorConverter implements
                                                throw new UnsupportedException("Ref value type",
                                                                refValue.getType());
                                        }
-                               }else{
+                               } else {
                                        convertedValues.put(key, value);
                                }
                        }