소스 검색

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();