diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-02-14 19:33:07 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-02-14 19:33:07 +0300 |
| commit | 83594538180d5c942a5807720216bc2f471a34fb (patch) | |
| tree | 7c5d970763d45d2f63b8809cdd0be88ebefbc516 | |
| parent | 40493350846da0d957015b0f2e7093e59e4b1b4f (diff) | |
NewStory: fix for occasional crash
| -rw-r--r-- | plugins/NewStory/src/utils.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/NewStory/src/utils.cpp b/plugins/NewStory/src/utils.cpp index 927b2b0ab2..b8b5369451 100644 --- a/plugins/NewStory/src/utils.cpp +++ b/plugins/NewStory/src/utils.cpp @@ -204,6 +204,9 @@ static int DetectUrl(const wchar_t *text) void UrlAutodetect(CMStringW &str)
{
+ if (str.IsEmpty())
+ return;
+
int level = 0;
for (auto *p = str.c_str(); *p; p++) {
|
