diff --git a/modules/HortaTracer/src/main/java/org/janelia/horta/actors/OmeZarrVolumeActor.java b/modules/HortaTracer/src/main/java/org/janelia/horta/actors/OmeZarrVolumeActor.java index c86c55f0a..8b1a670f5 100644 --- a/modules/HortaTracer/src/main/java/org/janelia/horta/actors/OmeZarrVolumeActor.java +++ b/modules/HortaTracer/src/main/java/org/janelia/horta/actors/OmeZarrVolumeActor.java @@ -209,7 +209,8 @@ public void display(GL3 gl, AbstractCamera camera, Matrix4 parentModelViewMatrix List otherActorList = new ArrayList<>(); List otherList = new ArrayList<>(); for (SortableBlockActor actor : dynamicTiles.getDisplayedActors()) { - blockList.add(actor); + if (actor!=null) + blockList.add(actor); } for (Object3d child : getChildren()) { if (child instanceof SortableBlockActorSource) { @@ -220,7 +221,8 @@ public void display(GL3 gl, AbstractCamera camera, Matrix4 parentModelViewMatrix Vector3 maxp = ((OmeZarrVolumeMeshActor)block).getBBoxMax(); ((OmeZarrVolumeMeshActor)block).setDistance(calcDistanceFromCamera(minp, maxp, modelViewMatrix)); } - blockList.add(block); + if (block!=null) + blockList.add(block); } } else if (child instanceof GL3Actor) {