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