Check if gnResponse is null in GenomeNexusImpl.java getAnnotatedRecordsUsingPOST() function to maintain compatibility with CVR fetcher code. Without this change, we saw the following error when running the CVR fetcher:
2023-10-02 16:00:39 [main] ERROR org.cbioportal.cmo.pipelines.cvr.mutation.GMLMutationDataReader - Error annotating with POSTs
java.lang.NullPointerException
at org.cbioportal.annotator.internal.GenomeNexusImpl.getAnnotatedRecordsUsingPOST(GenomeNexusImpl.java:659)
This PR contains:
gnResponse
is null inGenomeNexusImpl.java getAnnotatedRecordsUsingPOST()
function to maintain compatibility with CVR fetcher code. Without this change, we saw the following error when running the CVR fetcher: