Explorar o código

Fixed balance NPE issue. Fixes #457.

woollybah %!s(int64=6) %!d(string=hai) anos
pai
achega
fa9e7bdf1b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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