aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/src/ImlParsing/XmlSource.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-07-01 23:38:09 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-07-01 23:38:09 +0200
commita4386e4844dbb85b804770d936b2d47c7584d258 (patch)
tree85113f4aa66fa77f2e4cde0d4e02bc8eeadbd962 /Samples/common/src/ImlParsing/XmlSource.cs
parent6c4bb7e2c26c3a4c612fdece4dee96282391007a (diff)
wip
Diffstat (limited to 'Samples/common/src/ImlParsing/XmlSource.cs')
-rw-r--r--Samples/common/src/ImlParsing/XmlSource.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Samples/common/src/ImlParsing/XmlSource.cs b/Samples/common/src/ImlParsing/XmlSource.cs
index 0942486f..86eb1e24 100644
--- a/Samples/common/src/ImlParsing/XmlSource.cs
+++ b/Samples/common/src/ImlParsing/XmlSource.cs
@@ -39,7 +39,7 @@ namespace Crow
}
public Token FindTokenIncludingPosition (int pos) {
- if (tokens == null || tokens.Length == 0)
+ if (pos == 0 || tokens == null || tokens.Length == 0)
return default;
int idx = Array.BinarySearch (tokens, 0, tokens.Length, new Token () {Start = pos});