Add try/catch around the previewQueue(). Fixes #19

This commit is contained in:
Sandy Noble 2018-11-05 21:36:13 +00:00 committed by GitHub
parent 995db8a8a5
commit 417c18fec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -843,8 +843,17 @@ void drawImagePage()
showGroupBox();
showCurrentMachinePosition();
if (displayingQueuePreview)
previewQueue();
try {
if (displayingQueuePreview)
previewQueue();
}
catch (ConcurrentModificationException cme)
{
// not sure why this prompts an exception. Will revisit this another day.
println("Caught CME coming from previewQueue(): " + cme.getMessage());
}
if (displayingInfoTextOnInputPage)
showText(250,45);
drawStatusText((int)statusTextPosition.x, (int)statusTextPosition.y);