Nicolas Cannasse 6 лет назад
Родитель
Сommit
9253d4d117
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      hide/comp/cdb/Table.hx

+ 1 - 1
hide/comp/cdb/Table.hx

@@ -218,7 +218,7 @@ class Table extends Component {
 		var props = sheet.lines[0];
 		for( c in sheet.columns ) {
 
-			if( c.opt && !Reflect.hasField(props,c.name) && displayMode != AllProperties ) {
+			if( c.opt && props != null && !Reflect.hasField(props,c.name) && displayMode != AllProperties ) {
 				available.push(c);
 				continue;
 			}