Browse Source

fixed null access

Nicolas Cannasse 4 năm trước cách đây
mục cha
commit
82f10fa796
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      h2d/Flow.hx

+ 2 - 1
h2d/Flow.hx

@@ -661,7 +661,8 @@ class Flow extends Object {
 	override function contentChanged( s : Object ) {
 	override function contentChanged( s : Object ) {
 		while( s.parent != this )
 		while( s.parent != this )
 			s = s.parent;
 			s = s.parent;
-		if( getProperties(s).isAbsolute )
+		var p = getProperties(s);
+		if( p != null && p.isAbsolute )
 			return;
 			return;
 		needReflow = true;
 		needReflow = true;
 		onContentChanged();
 		onContentChanged();