RicoSuter / VisualJsonEditor

A JSON schema based file editor for Windows.
http://visualjsoneditor.org
MIT License
349 stars 87 forks source link

crash when deselecting "Specify values" of an array with added item #13

Closed mkaut closed 7 years ago

mkaut commented 7 years ago

Example schema:

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": 
    {
        "branching": 
        {
            "type": "array",
            "title": "Tree branching",
            "items": 
            {
                "type": "object",
                "title": "One branching",
                "properties": 
                {
                    "time": 
                    {
                        "type": "string",
                        "title": "Time"
                    },
                    "branches": 
                    {
                        "type": "integer",
                        "title": "Number of branches"
                    }
                }
            }
        }
    }
}

Steps to reproduce:

  1. Select new file with the above schema
  2. Select "branches" and "Specify values"
  3. Click on "Add"
  4. De-select "Specify value"

On my machine (Win 10 64, VJE v. 1.8), this crashes the editor.