Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-4334

Uniprot parser does not support sequence features with 'unknown' start or end

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.11.2.7
    • Fix Version/s: 2.11.3.0
    • Labels:
      None

      Description

      Originally Cannot retrieve uniprot accession 'Q29079':

      Bug first reported by UoD student - retrieval of Q29079 leads to an exception and warning dialog:
      java.lang.NullPointerException: null
      at jalview.ws.dbsources.Uniprot.uniprotEntryToSequence(Uniprot.java:303) ~[jalview.jar:2.11.2.7]
      at jalview.ws.dbsources.Uniprot.getSequenceRecords(Uniprot.java:162) ~[jalview.jar:2.11.2.7]
      at jalview.gui.SequenceFetcher.fetchSingleAccession(SequenceFetcher.java:800) [jalview.jar:2.11.2.7]
      at jalview.gui.SequenceFetcher.run(SequenceFetcher.java:582) [jalview.jar:2.11.2.7]
      at java.lang.Thread.run(Thread.java:750) [?:1.8.0_322]

      reason is that some features have 'unknown' status for their start or end attribute, with no actual value, so the code throws an NPE.

        Attachments

          Activity

            People

            Assignee:
            jprocter James Procter
            Reporter:
            jprocter James Procter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: