浏览代码

fixed null access

Nicolas Cannasse 4 年之前
父节点
当前提交
82f10fa796
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      h2d/Flow.hx

+ 2 - 1
h2d/Flow.hx

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