From: Renia Correya Date: Fri, 12 Jul 2024 09:30:11 +0000 (+0100) Subject: JAL-4411 Bug fix X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=445217db20f0636124211b25f00563500e446d20;p=jalview.git JAL-4411 Bug fix --- diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index cade4f6..7248e47 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -712,11 +712,13 @@ public class StructureSelectionManager if(seq.getDatasetSequence() != null) { Vector pdbEntries = seq.getDatasetSequence().getAllPDBEntries(); if(pdbEntries != null) { - for(PDBEntry pdbEntry : pdbEntries) { - if(ssStructFilePathNameInPDB.startsWith(pdbEntry.getFile())) { - provider = pdbEntry.getProvider(); - break; - } + for(PDBEntry pdbEntry : pdbEntries) { + if(pdbEntry.getFile()!=null) { + if(ssStructFilePathNameInPDB.startsWith(pdbEntry.getFile())) { + provider = pdbEntry.getProvider(); + break; + } + } }