Skip to content

Commit 5c8703a

Browse files
committed
Bug #143. Fix NPE in HeatMapPanel.
1 parent 34fdcf9 commit 5c8703a

File tree

1 file changed

+1
-1
lines changed
  • EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view

1 file changed

+1
-1
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/HeatMapPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ private JPanel createExpressionLegendPanel() {
11781178
layout.setHorizontalGroup(hGroup);
11791179
layout.setVerticalGroup(vGroup);
11801180

1181-
if (this.currentExpressionSet2 != null && !this.currentExpressionSet2.isEmpty()) {
1181+
if (params.isTwoDistinctExpressionSets()) {
11821182
ColorGradientWidget legend1 = ColorGradientWidget.getInstance("", hmParams.getTheme_ds1(),
11831183
hmParams.getRange_ds1(), true, ColorGradientWidget.LEGEND_POSITION.NA);
11841184
ColorGradientWidget legend2 = ColorGradientWidget.getInstance("", hmParams.getTheme_ds2(),

0 commit comments

Comments
 (0)