Selaa lähdekoodia

Fixed balance NPE issue. Fixes #457.

woollybah 6 vuotta sitten
vanhempi
commit
fa9e7bdf1b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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