I have a ConfigurationProperties class looks something like this (stripped out to show what i need)

```
@ConfigurationProperties(prefix = "something")
@Configuration
@Data
public class SomethingProps {

    private OtherProps otherProps;
}

```

```
@Data
public class OtherProps {

    private boolean enabled = true;
}

```

When I provide this in my application.yml file everything works fine

```
something:
   otherProps: true 

```

But when I don't provide otherProps at all in the yml file then i get a null pointer exception when autowiring OtherProps in a constructor. My expectation is that it would default to true, i have tried annotating with @NotNull