From 2ea3347017f8f1ea0370b5348587435b709585ed Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Thu, 26 Sep 2013 00:00:49 +0000 Subject: [PATCH] minor bug removed --- .../java/src/org/forester/archaeopteryx/ControlPanel.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/forester/java/src/org/forester/archaeopteryx/ControlPanel.java b/forester/java/src/org/forester/archaeopteryx/ControlPanel.java index eab1ea8..656cb75 100644 --- a/forester/java/src/org/forester/archaeopteryx/ControlPanel.java +++ b/forester/java/src/org/forester/archaeopteryx/ControlPanel.java @@ -433,9 +433,15 @@ final class ControlPanel extends JPanel implements ActionListener { } void showAnnotations() { - _show_annotation.setSelected( true ); - _color_according_to_annotation.setSelected( true ); - _color_acc_species.setSelected( false ); + if ( _show_annotation != null ) { + _show_annotation.setSelected( true ); + } + if ( _color_according_to_annotation != null ) { + _color_according_to_annotation.setSelected( true ); + } + if ( _color_acc_species != null ) { + _color_acc_species.setSelected( false ); + } _mainpanel.getCurrentTreePanel().repaint(); } -- 1.7.10.2