Skip to content
Snippets Groups Projects
Commit 0ca65c32 authored by Stéphane  DALLONGEVILLE's avatar Stéphane DALLONGEVILLE
Browse files

Correctly catch these exceptions otherwise Protocols plugin couldn't be...

Correctly catch these exceptions otherwise Protocols plugin couldn't be started with an invalid Protocol stored in XML.
parent 4dec6760
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ import icy.preferences.XMLPreferences;
import icy.system.thread.ThreadUtil;
import icy.util.XMLUtil;
import plugins.adufour.blocks.lang.WorkFlow;
import plugins.adufour.blocks.util.BlocksException;
import plugins.adufour.blocks.util.BlocksML;
import plugins.adufour.blocks.util.BlocksReloadedException;
import plugins.adufour.protocols.gui.MainFrame;
......@@ -227,6 +228,10 @@ public class Protocols extends PluginActionable
reload(xml, panel.getFile().getAbsolutePath());
return;
}
catch (BlocksException e2)
{
e2.printStackTrace();
}
}
}
else
......@@ -263,6 +268,10 @@ public class Protocols extends PluginActionable
reload(xml, panel.getFile().getAbsolutePath());
return;
}
catch (BlocksException e2)
{
e2.printStackTrace();
}
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment