From 5ca3222e5b2f872ad2303cff91604f2ca954c854 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 24 Jul 2024 19:40:27 +0200 Subject: [PATCH] patterns: Updated pattern language Fixes #1828 --- lib/external/pattern_language | 2 +- plugins/builtin/source/content/views/view_pattern_editor.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/external/pattern_language b/lib/external/pattern_language index 0d6469dd6..514f5d722 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit 0d6469dd654419a7f4b530ab4171ab61b76eda7a +Subproject commit 514f5d7225b0a3266792c66d515b183ca31b0346 diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index cf70e20d2..11a98b931 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -1307,7 +1307,8 @@ namespace hex::plugin::builtin { if (!m_lastCompileError->empty()) { for (const auto &error : *m_lastCompileError) { - if (error.getLocation().source->source == pl::api::Source::DefaultSource) + auto source = error.getLocation().source; + if (source != nullptr && source->source == pl::api::Source::DefaultSource) errorMarkers[error.getLocation().line] = processMessage(error.getMessage()); } }