From: Jim Procter Date: Fri, 20 Jan 2023 23:39:28 +0000 (+0000) Subject: JAL-4114 model_page_url not required in v2.0 response X-Git-Tag: Release_2_11_2_6~2^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fpatch%2FJAL-4114_updated_3dbeacons_api;p=jalview.git JAL-4114 model_page_url not required in v2.0 response --- 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;