summaryrefslogtreecommitdiff
path: root/libbridge/src/main/cpp/helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libbridge/src/main/cpp/helpers.cpp')
-rw-r--r--libbridge/src/main/cpp/helpers.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbridge/src/main/cpp/helpers.cpp b/libbridge/src/main/cpp/helpers.cpp
index fac131a..04befc6 100644
--- a/libbridge/src/main/cpp/helpers.cpp
+++ b/libbridge/src/main/cpp/helpers.cpp
@@ -146,6 +146,7 @@ const char* vectorToString(const std::set<uint32_t>& intSet, const std::string s
std::set<std::string> splitString(const std::string& str, const std::string& delim) {
std::set<std::string> tokens;
+ if (str.empty()) return tokens;
size_t pos = 0;
std::string token;
std::string content = str; // Copy of str so we can safely erase content