Skip to content

Commit

Permalink
fix: Exception caused by null tiles
Browse files Browse the repository at this point in the history
When cache[0] is null, it reaches RuntimeException("Not a Raster instance?") line.
  • Loading branch information
ktgw0316 committed Dec 16, 2023
1 parent 120e92b commit a3bfbda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ public Raster scheduleTile(OpImage owner,
} else {
// Check the cache: a null value indicates computation is
// still in progress.
if(cache[0] == null) {
while (cache[0] == null) {
// Wait for the computation to complete.
try {
cache.wait(); // XXX Should there be a timeout?
Expand Down

0 comments on commit a3bfbda

Please sign in to comment.