We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f136969 commit 165b183Copy full SHA for 165b183
app/assets/javascripts/oxalis/model/volumetracing/volumelayer.js
@@ -52,11 +52,15 @@ export class VoxelIterator {
52
this.minCoord2d = minCoord2d;
53
this.get3DCoordinate = get3DCoordinate;
54
this.boundingBox = boundingBox;
55
- const firstCoordinate = this.get3DCoordinate(this.minCoord2d);
56
- if (this.map[0][0] && this.isCoordinateInBounds(firstCoordinate)) {
57
- this.next = firstCoordinate;
+ if (!this.map || !this.map[0]) {
+ this.hasNext = false;
58
} else {
59
- this.getNext();
+ const firstCoordinate = this.get3DCoordinate(this.minCoord2d);
+ if (this.map[0][0] && this.isCoordinateInBounds(firstCoordinate)) {
60
+ this.next = firstCoordinate;
61
+ } else {
62
+ this.getNext();
63
+ }
64
}
65
66
0 commit comments