Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-193

OAI RDF crosswalk fails when DC value is null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.5.1, 1.5.2
    • Fix Version/s: 1.6.0
    • Component/s: DSpace API
    • Labels:
      None
    • Environment:
      Linux, Oracle DB (but platform and DB are not relevant to the problem)
    • Attachments:
      1
    • Comments:
      1

      Description

      When a MetadataValue.value is null for one of the DC fields crosswalked into RDF, the OAI crosswalk fails with a NullPointerException. The patch below fixes the problem. It's not clear if the null value is itself pathological, but the database allows it and there were several Items in our test DSpace with null metadata fields values, so it is a possibility that the code should handle gracefully.

        Attachments

          Activity

            People

            Assignee:
            stuartlewis Stuart Lewis
            Reporter:
            lcs Larry Stone
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: