File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/heatmap Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -567,20 +567,26 @@ private GeneListTunable createGeneListTaskParams() {
567
567
private void runGeneMANIA () {
568
568
GeneListTunable geneListTaskParams = createGeneListTaskParams ();
569
569
TaskIterator tasks = geneManiaTaskFactory .createTaskIterator (geneListTaskParams );
570
- taskManager .execute (tasks );
570
+ if (tasks != null ) {
571
+ taskManager .execute (tasks );
572
+ }
571
573
}
572
574
573
575
private void runString () {
574
576
GeneListTunable geneListTaskParams = createGeneListTaskParams ();
575
577
TaskIterator tasks = stringAppTaskFactoy .createTaskIterator (geneListTaskParams );
576
- taskManager .execute (tasks );
578
+ if (tasks != null ) {
579
+ taskManager .execute (tasks );
580
+ }
577
581
}
578
582
579
583
private void runPathwayCommons () {
580
584
long uuid = getEnrichmentMap ().getNetworkID ();
581
585
CyNetwork network = networkManager .getNetwork (uuid );
582
586
OpenPathwayCommonsTask task = pathwayCommonsFactory .createForHeatMap (network );
583
- taskManager .execute (new TaskIterator (task ));
587
+ if (task != null ) {
588
+ taskManager .execute (new TaskIterator (task ));
589
+ }
584
590
}
585
591
586
592
private boolean isHeatMapPanelRegistered () {
You can’t perform that action at this time.
0 commit comments