Skip to content

Sometimes errors does not have path #1131

@Mingun

Description

@Mingun

This KSY

meta:
  id: test_type
instances:
  me:
    value: _on

reports the error (note, that this is full text):

java.util.NoSuchElementException: None.get

Compare with that KSY:

meta:
  id: test_type
instances:
  me:
    type:
      switch-on: 1
      cases:
        _on: u1

Error is:

test_type: /instances/me/type/cases/Name(identifier(_on)):
	error: None.get

Note, that error with missing path generated in many other cases (can't remember all the places, I started tracking them after I ran into the latest example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions