From 14884de7e4fae9b780ca43f4d5125728b878e04c Mon Sep 17 00:00:00 2001 From: Jean-Yves Tinevez Date: Wed, 24 May 2023 13:34:40 +0200 Subject: [PATCH] Don't crash when loading faulty meshes. --- src/main/java/fiji/plugin/trackmate/io/TmXmlReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fiji/plugin/trackmate/io/TmXmlReader.java b/src/main/java/fiji/plugin/trackmate/io/TmXmlReader.java index 1f43ba583..774709262 100644 --- a/src/main/java/fiji/plugin/trackmate/io/TmXmlReader.java +++ b/src/main/java/fiji/plugin/trackmate/io/TmXmlReader.java @@ -976,7 +976,7 @@ private SpotCollection getSpots( final Element modelElement ) spots.remove( spot ); spots.add( spotMesh ); } - catch ( final IOException e ) + catch ( final Exception e ) { ok = false; logger.error( "Problem reading mesh for spot " + id + ":\n"