Uploaded image for project: 'Kieler Pragmatics'
  1. Kieler Pragmatics
  2. KIPRA-1848

NPE in JsonImporter with primitive edge

    XMLWordPrintable

    Details

      Description

      There's an issue in the importer when a primitive edge is imported that has no port in #transformPrimitiveEdge()

       

       

      val srcNode = nodeIdMap.get(jsonObj.optString("source"))
      val srcPort = portIdMap.get(jsonObj.optString("sourcePort"))
       
      if (srcPort.parent != srcNode)
      

       

       

      Obviously, an NPE is thrown if srcPort is null.

       

      A workaround is to use Extended Edges as described in the javadoc of the JsonFormatHandler  class:

       
      130

        Attachments

          Activity

            People

            Assignee:
            uru Ulf Rueegg [X] (Inactive)
            Reporter:
            uru Ulf Rueegg [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: