Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.2.1
-
None
Description
The symptom:
2009-04-22 12:56:29,747 ERROR [TP-Processor2] [runtime]
Expected hash. currentlyBuilding evaluated instead to freemarker.template.SimpleScalar on line 121, column 35 in fragments/showBuildQueue.ftl.
The problematic instruction:
----------
==> if !currentlyBuilding.executableElasticImages.isEmpty() [on line 121, column 29 in fragments/showBuildQueue.ftl]
----------
The cause:
On line 114 f the showBuildQueue.ftl file we set currentlyBuilding to ' ' if it isn't found, but forget on line 121 to check if it has any content before calling the methods on it.
As an aside, I am not sure if we really should be setting what is supposed to be another object (something that isn't a string) to an empty string rather than just leaving it null...