git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
924cfa6
)
JAL-2069 ensure threshline instantiated to avoid NPE
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 8 Nov 2017 11:33:43 +0000
(11:33 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 8 Nov 2017 11:33:43 +0000
(11:33 +0000)
src/jalview/gui/FeatureColourChooser.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/FeatureColourChooser.java
b/src/jalview/gui/FeatureColourChooser.java
index
9a5b3cd
..
6280a64
100644
(file)
--- a/
src/jalview/gui/FeatureColourChooser.java
+++ b/
src/jalview/gui/FeatureColourChooser.java
@@
-278,6
+278,9
@@
public class FeatureColourChooser extends JalviewDialog
}
}
+ threshline = new GraphLine((max - min) / 2f, "Threshold", Color.black);
+ threshline.value = cs.getThreshold();
+
if (cs.hasThreshold())
{
// initialise threshold slider and selector
@@
-285,9
+288,6
@@
public class FeatureColourChooser extends JalviewDialog
slider.setEnabled(true);
slider.setValue((int) (cs.getThreshold() * scaleFactor));
thresholdValue.setEnabled(true);
- threshline = new GraphLine((max - min) / 2f, "Threshold",
- Color.black);
- threshline.value = cs.getThreshold();
}
adjusting = false;