Browse Source

fixed null access

Nicolas Cannasse 4 years ago
parent
commit
82f10fa796
1 changed files with 2 additions and 1 deletions
  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();