Navigation Menu

Skip to content

Commit

Permalink
+ replace assert() to avoid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Aug 29, 2015
1 parent f70d5be commit c3656ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App/Enumeration.cpp
Expand Up @@ -257,7 +257,8 @@ int Enumeration::getInt(void) const
std::vector<std::string> Enumeration::getEnumVector(void) const
{
// using string methods without set, use setEnums(const char** plEnums) first!
assert(_EnumArray);
if (!_EnumArray)
return std::vector<std::string>();

std::vector<std::string> result;
const char **plEnums = _EnumArray;
Expand Down

0 comments on commit c3656ad

Please sign in to comment.