Skip to content

Commit fa2c2b8

Browse files
committed
allow progression2 and progression3 to be empty
1 parent 232a30a commit fa2c2b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/gameanalytics/GAValidator.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ namespace gameanalytics
275275

276276
bool validateProgressionString(std::string const& progression, ValidationResult& out, int progressionLvl)
277277
{
278+
if(progressionLvl > 0 && progression.empty())
279+
return true;
280+
278281
if (!GAValidator::validateEventPartLength(progression, true))
279282
{
280283
logging::GALogger::w("Validation fail - progression event - - progression0%d: Cannot be empty or above 64 characters. String: %s", progressionLvl + 1, progression.c_str());

0 commit comments

Comments
 (0)