From 456e7b01bf201167e0063d0e8b56d4717322d6c0 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 20 Jan 2023 23:39:28 +0000 Subject: [PATCH] JAL-4114 model_page_url not required in v2.0 response --- .../gui/structurechooser/ThreeDBStructureChooserQuerySource.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java b/src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java index 28c41e9..cbc6add 100644 --- a/src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java +++ b/src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java @@ -453,7 +453,10 @@ public class ThreeDBStructureChooserQuerySource pdbEntry.setRetrievalUrl(urlStr); } pdbEntry.setProvider(typeColumn); - pdbEntry.setProviderPage(modelPage); + if (modelPage != null) + { + pdbEntry.setProviderPage(modelPage); + } selectedSeq.getDatasetSequence().addPDBId(pdbEntry); } pdbEntriesToView[count++] = pdbEntry; -- 1.7.10.2