From 88eabf40b5dc354e3c3c94a1bd1d48911e273808 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 29 Aug 2015 16:34:36 +0200 Subject: [PATCH] + replace assert() to avoid crash --- src/App/Enumeration.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/Enumeration.cpp b/src/App/Enumeration.cpp index 6e3a353261..82c726ff54 100644 --- a/src/App/Enumeration.cpp +++ b/src/App/Enumeration.cpp @@ -257,7 +257,8 @@ int Enumeration::getInt(void) const std::vector Enumeration::getEnumVector(void) const { // using string methods without set, use setEnums(const char** plEnums) first! - assert(_EnumArray); + if (!_EnumArray) + return std::vector(); std::vector result; const char **plEnums = _EnumArray;