*** empty log message ***
[mir.git] / source / mir / generator / FreemarkerGenerator.java
index 460f24a..fdf66cc 100755 (executable)
@@ -83,10 +83,8 @@ public class FreemarkerGenerator implements Generator {
            if (!valuesCache.containsKey(aKey)) {
              Object value = map.get(aKey);
 
-//    ML: this unfortunately doesn't work, because the entity doesn't seem to store
-//        fields with null values
-//    if (value == null && !map.containsKey(aKey))
-//          throw new TemplateModelException("MapAdapter: no key "+aKey+" available");
+      if (value == null && !map.containsKey(aKey))
+          throw new TemplateModelException("MapAdapter: no key "+aKey+" available");
 
              valuesCache.put(aKey, makeAdapter(value));
            }