Uploaded image for project: 'PhenoTips'
  1. PhenoTips
  2. PT-3145

Pedigree fails to apply automatic layout in some cases

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.3-milestone-6
    • Fix Version/s: 1.3-rc-2
    • Component/s: Pedigree
    • Labels:
      None

      Description

      Automatic layout may fail in some cases. This includes import (since auto-layout is one of the steps performed for each import), which prevents the data from being imported in any form (for the affected pedigree)

      To reproduce: [[ trying to find a minimal example. For now have a sample import JSON which triggers the bug, but turns out steps to reproduce are not as simple as I thought. The code line which triggers the bug is obvious though ]]

      The problem: when a date is defined as an empty date object (no fields are set), as opposed to `null`, pedigree layout algorithm is interrupted by an exception (it calls empty-date-object.toJavascriptDate().someMethod(), but empty-date-object.toJavascriptDate() returns null and thus invocation of null.someMethod() triggers an exception)

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                asm Andriy Misyura
                Reporter:
                asm Andriy Misyura
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: