fixed bug 500
[org.ibex.core.git] / src / org / ibex / Template.java
index 49748ac..2f3e2ac 100644 (file)
@@ -295,6 +295,7 @@ public class Template {
                     nodeStack.setSize(nodeStack.size() - 1);
                     t.children.addElement(oldt);
                     int oldt_lines = getLine() - oldt.startLine;
+                    if (t.content == null) t.content = new StringBuffer();
                     for (int i=0; oldt_lines > i; i++) t.content.append('\n');
                 }
             }