Fix test failure

This commit is contained in:
Kris De Volder
2017-08-11 16:56:33 -07:00
parent 9d9622002a
commit 7180eb59b5

View File

@@ -72,7 +72,7 @@ public class SchemaBasedSnippetGenerator implements TypeBasedSnippetProvider {
}
private void generateBeanSnippet(List<YTypedProperty> props, SnippetBuilder builder, int indent, int nestingLimit) {
if (nestingLimit>0) {
if (nestingLimit>0 && !props.isEmpty()) {
boolean first = true;
for (YTypedProperty p : props) {
if (!first) {