diff --git a/Nibriboard/ClientFiles/ChunkCache.js b/Nibriboard/ClientFiles/ChunkCache.js index 5ae0bbb..692429a 100644 --- a/Nibriboard/ClientFiles/ChunkCache.js +++ b/Nibriboard/ClientFiles/ChunkCache.js @@ -43,7 +43,7 @@ class ChunkCache let lineFragments = []; let currentChunk = this.fetchChunk(startingChunkRef); - while(currentChunk != null) + while(currentChunk instanceof Chunk) { let nextLineFragment = currentChunk.getLineById(lineId); if(nextLineFragment == null)