Pārlūkot izejas kodu

bugfix in refreshProperties

Nicolas Cannasse 6 gadi atpakaļ
vecāks
revīzija
9253d4d117
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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];
 		var props = sheet.lines[0];
 		for( c in sheet.columns ) {
 		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);
 				available.push(c);
 				continue;
 				continue;
 			}
 			}