RicoSuter / VisualJsonEditor

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

Crash when closing not required object #10

Closed rkatzmann closed 8 years ago

rkatzmann commented 8 years ago

I have the following schema:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Room Schema",
  "type": "object",
  "properties": {
    "Furniture_Element": {
      "title": "Furniture Element",
      "description": "Furniture Element (Type) - chair, sofa, table, cupboard, blackboard",
      "type": "string"
    },
    "Dimension": {
      "title": "Room Size",
      "type": "object",
      "properties": {
        "X": {
          "description": "X-Position of room relative to floor",
          "type": "integer",
          "minimum": 0
        },
        "Y": {
          "description": "Y-Position of room relative to floor",
          "type": "integer",
          "minimum": 0
        },
        "Width": {
          "description": "Width of room",
          "type": "integer",
          "minimum": 1
        },
        "Height": {
          "description": "Height of room",
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "X",
        "Y",
        "Width",
        "Height"
      ]
    },
    "FurniturePosition": {
      "title": "Position Furniture",
      "type": "object",
      "properties": {
        "X": {
          "title": "X Pos",
          "description": "X-Position of furniture",
          "type": "integer",
          "minimum": 0
        },
        "Y": {
          "title": "Y Pos",
          "description": "Y-Position of furniture",
          "type": "integer",
          "minimum": 0
        },
        "Width": {
          "description": "Width of furniture",
          "type": "integer",
          "minimum": 1
        },
        "Height": {
          "description": "Height of furniture",
          "type": "integer",
          "minimum": 1
        },
        "ImageFile": {
          "title": "Image Path",
          "description": "Path to representational image",
          "type": "string"
        }
      },
      "required": [
        "ImageFile"
      ]
    },
    "Windows": {
      "description": "When set to true the room additional has windows",
      "type": "boolean"
    }
  },
  "required": [
    "Furniture_Element",
    "FurniturePosition",
    "Windows"
  ]
}

When I create a new file and edit it I have the option to specify values for "Dimension (Object)". I click on this option. Next I decide I don't need this option and click on it again. Then I get the message "VisualJsonEditor has stopped working".

I have VS 2013 on my system installed. The Debugger tells me that "NotImplementedException" was unhandled. Pressing "Continue" quits the Debugger. There is no call stack.

RicoSuter commented 8 years ago

Update should be available soon..