From 445217db20f0636124211b25f00563500e446d20 Mon Sep 17 00:00:00 2001 From: Renia Correya Date: Fri, 12 Jul 2024 10:30:11 +0100 Subject: [PATCH] JAL-4411 Bug fix --- src/jalview/structure/StructureSelectionManager.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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; + } + } } -- 1.7.10.2