Browse Source

Fixed error

Brian Fiete 3 years ago
parent
commit
ae2c12d974
1 changed files with 1 additions and 1 deletions
  1. 1 1
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 1 - 1
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -19524,7 +19524,7 @@ void BfExprEvaluator::DoMemberReference(BfMemberReferenceExpression* memberRefEx
 		{
 			if (mModule->PreFail())
 			{
-				if ((thisValue.mType->IsPointer()) && (thisValue.mType->GetUnderlyingType()->IsObjectOrInterface()))
+				if ((thisValue) && (thisValue.mType->IsPointer()) && (thisValue.mType->GetUnderlyingType()->IsObjectOrInterface()))
 					mModule->Fail(StrFormat("Members cannot be referenced on type '%s' because the type is a pointer to a reference type (ie: a double-reference).", 
 						mModule->TypeToString(thisValue.mType).c_str()), nameRefNode);
 				else if (thisValue)