Commits

Stephen McKamey  committed 632ac70

fixing client-sde generation of empty attributes

  • Participants
  • Parent commits ee5c847

Comments (0)

Files changed (1)

File duel-compiler/src/main/java/org/duelengine/duel/codegen/ClientCodeGen.java

 				this.writeString(output, attr, preMode);
 				output.append(" : ");
 				DuelNode attrVal = node.getAttribute(attr);
-				if (attrVal instanceof CommentNode) {
+				if (attrVal == null) {
+					output.append("null");
+				} else if (attrVal instanceof CommentNode) {
 					output.append("\"\"");
 				} else {
 					if (addPrefix && "view".equalsIgnoreCase(attr) && attrVal instanceof ExpressionNode) {