diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-07-01 23:38:09 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-07-01 23:38:09 +0200 |
| commit | a4386e4844dbb85b804770d936b2d47c7584d258 (patch) | |
| tree | 85113f4aa66fa77f2e4cde0d4e02bc8eeadbd962 /Samples/common/src/ImlParsing/XmlSource.cs | |
| parent | 6c4bb7e2c26c3a4c612fdece4dee96282391007a (diff) | |
wip
Diffstat (limited to 'Samples/common/src/ImlParsing/XmlSource.cs')
| -rw-r--r-- | Samples/common/src/ImlParsing/XmlSource.cs | 2 |
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}); |