summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/slang-doc-extractor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core/slang-doc-extractor.cpp')
-rw-r--r--source/compiler-core/slang-doc-extractor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/compiler-core/slang-doc-extractor.cpp b/source/compiler-core/slang-doc-extractor.cpp
index c2200cf37..363108548 100644
--- a/source/compiler-core/slang-doc-extractor.cpp
+++ b/source/compiler-core/slang-doc-extractor.cpp
@@ -731,7 +731,8 @@ SlangResult DocMarkupExtractor::extract(const SearchItemInput* inputs, Index inp
{
// Find the new view
sourceView = sourceManager->findSourceView(loc);
- SLANG_ASSERT(sourceView);
+ if (!sourceView)
+ return SLANG_FAIL;
// We want only one view per SourceFile
SourceFile* sourceFile = sourceView->getSourceFile();