JAL-4114 model_page_url not required in v2.0 response patch/JAL-4114_updated_3dbeacons_api
authorJim Procter <j.procter@dundee.ac.uk>
Fri, 20 Jan 2023 23:39:28 +0000 (23:39 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Fri, 20 Jan 2023 23:39:28 +0000 (23:39 +0000)
src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java

index 28c41e9..cbc6add 100644 (file)
@@ -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;