Browse Source

mGlobalsTargetType NULL check

Brian Fiete 3 years ago
parent
commit
e9c85529a6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      IDEHelper/COFF.cpp

+ 4 - 1
IDEHelper/COFF.cpp

@@ -286,7 +286,10 @@ COFF::~COFF()
 }
 }
 
 
 const char* COFF::CvCheckTargetMatch(const char* name, bool& wasBeef)
 const char* COFF::CvCheckTargetMatch(const char* name, bool& wasBeef)
-{	
+{
+	if (mGlobalsTargetType == NULL)
+		return NULL;
+
 	/*if (mGlobalsTargetType->IsGlobalsContainer())
 	/*if (mGlobalsTargetType->IsGlobalsContainer())
 	{
 	{
 		wasBeef = true;
 		wasBeef = true;