From: tcofoegbu Date: Tue, 14 Jun 2016 11:24:40 +0000 (+0100) Subject: JAL-2047 trapped block that could likely cause ClassCastException X-Git-Tag: Release_2_10_0~181 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7271c53b93e7834da8e86fc0a4d7b7fb57f5a9d7;p=jalview.git JAL-2047 trapped block that could likely cause ClassCastException --- diff --git a/src/jalview/fts/core/FTSDataColumnPreferences.java b/src/jalview/fts/core/FTSDataColumnPreferences.java index 1e38260..eb7455e 100644 --- a/src/jalview/fts/core/FTSDataColumnPreferences.java +++ b/src/jalview/fts/core/FTSDataColumnPreferences.java @@ -68,8 +68,12 @@ public class FTSDataColumnPreferences extends JScrollPane FTSRestClientI ftsRestClient) { this.ftsRestClient = ftsRestClient; + if (source.equals(PreferenceSource.STRUCTURE_CHOOSER) + || source.equals(PreferenceSource.PREFERENCES)) + { structSummaryColumns = ((PDBFTSRestClient) ftsRestClient) - .getAllDefaultDisplayedStructureDataColumns(); + .getAllDefaultDisplayedStructureDataColumns(); + } allFTSDataColumns.addAll(ftsRestClient.getAllFTSDataColumns()); tbl_FTSDataColumnPrefs.setAutoCreateRowSorter(true);