Skip to content

Commit

Permalink
catch exception instead of crashing UI
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Apr 7, 2024
1 parent 4c013d3 commit 8ca41d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,12 @@ private void fireVitaminSelectedUpdate() {
tf.updatePose(selectedVitamin.getLocation());
transformPanel.setDisable(false);
MobileBaseCadManager manager = MobileBaseCadManager.get(holder);
Affine af = manager.getVitaminAffine(selectedVitamin);
BowlerStudioController.setSelectedAffine(af);
try {
Affine af = manager.getVitaminAffine(selectedVitamin);
BowlerStudioController.setSelectedAffine(af);
}catch(Exception e) {
e.printStackTrace();
}
}

public void setVitaminProvider(IVitaminHolder h) {
Expand Down

0 comments on commit 8ca41d6

Please sign in to comment.