We're updating the issue view to help you get more done. 

Pedigree fails to apply automatic layout in some cases

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)

Environment

None

Status

Assignee

Andrew Misyura

Reporter

Andrew Misyura

Labels

None

External issue ID

None

External issue ID

None

Epic Link

Components

Fix versions

Affects versions

1.3-milestone-6

Priority

Medium