X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fstructures%2Fmodels%2FAAStructureBindingModel.java;h=dc423158a27a1776209443cd9c9478c074694364;hb=dfa980fc8e8dd186278e5aa1fcf356964afdf61a;hp=3c4041413282c840e9631e2262e086c21321cbd1;hpb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;p=jalview.git diff --git a/src/jalview/structures/models/AAStructureBindingModel.java b/src/jalview/structures/models/AAStructureBindingModel.java index 3c40414..dc42315 100644 --- a/src/jalview/structures/models/AAStructureBindingModel.java +++ b/src/jalview/structures/models/AAStructureBindingModel.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.structures.models; import jalview.api.StructureSelectionManagerProvider; @@ -578,6 +598,10 @@ public abstract class AAStructureBindingModel extends for (String file : files) { notLoaded = file; + if (file == null) + { + continue; + } try { StructureMapping[] sm = getSsm().getMapping(file); @@ -613,7 +637,10 @@ public abstract class AAStructureBindingModel extends { for (SequenceI s : seqs) { - if (s == seq) + if (s == seq + || (s.getDatasetSequence() != null && s + .getDatasetSequence() == seq + .getDatasetSequence())) { return true; } @@ -633,4 +660,4 @@ public abstract class AAStructureBindingModel extends { this.finishedInit = fi; } -} \ No newline at end of file +}