Ver Fonte

Fixed balance NPE issue. Fixes #457.

woollybah há 6 anos atrás
pai
commit
fa9e7bdf1b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      expr.bmx

+ 1 - 1
expr.bmx

@@ -329,7 +329,7 @@ Type TExpr
 			
 		End If
 		' balance structs
-		If TObjectType( lhs ).EqualsType(rhs) And TObjectType( lhs ).classDecl.IsStruct() And TObjectType( rhs ).classDecl.IsStruct() Then
+		If TObjectType( lhs ) And TObjectType( rhs ) And TObjectType( lhs ).EqualsType(rhs) And TObjectType( lhs ).classDecl.IsStruct() And TObjectType( rhs ).classDecl.IsStruct() Then
 			Return lhs
 		End If