Skip to content

[bug] mixed notation of objects with { } and . lead to null #28

@andreaTP

Description

@andreaTP

minimal repro:

  @Test
  def parseNestedObjectsWithMixedNotations() = {
    val config = ConfigFactory.parseString("a { b.c { d = 1 } }")

    assert { config != null }

    assertEquals(config.getConfig("a.b.c").getInt("d"), 1)
  }

this will fail throwing a NPE

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