From: Jim Procter Date: Fri, 20 Jan 2023 17:50:53 +0000 (+0000) Subject: JAL-4114 additional warnings when PDBe doesn’t return as many responses as queries... X-Git-Tag: Release_2_11_2_6~2^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4314e53ec6134b03f48578bf3e78d1bd7eaec6a9;p=jalview.git JAL-4114 additional warnings when PDBe doesn’t return as many responses as queries made to it when adding in additional metadata --- diff --git a/src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java b/src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java index 8b4258f..28c41e9 100644 --- a/src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java +++ b/src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java @@ -546,6 +546,11 @@ public class ThreeDBStructureChooserQuerySource try { resultList = pdbquery.executePDBFTSRestRequest(pdbRequest); + if (resultList.getNumberOfItemsFound() == 0) + { + Console.info("Unexpectedly returned no results for pdbe query: " + + pdb_Query); + } results.add(resultList); lastPdbRequest = pdbRequest; } catch (Exception ex)