-
Notifications
You must be signed in to change notification settings - Fork 74
Description
I had a reference to a property in my state.yaml:
replication: ${my_data_default_replication}
which I had failed to define in my props file.
The exception message is not very helpful.
[INFO] reading props from ../config/prod.props
java.lang.NullPointerException
at com.devshawn.kafka.gitops.service.ParserService.parseStateFile(ParserService.java:84)
at com.devshawn.kafka.gitops.service.ParserService.parseStateFile(ParserService.java:42)
at com.devshawn.kafka.gitops.StateManager.getAndValidateStateFile(StateManager.java:72)
at com.devshawn.kafka.gitops.cli.ValidateCommand.call(ValidateCommand.java:26)
at com.devshawn.kafka.gitops.cli.ValidateCommand.call(ValidateCommand.java:15)
at picocli.CommandLine.executeUserObject(CommandLine.java:1783)
at picocli.CommandLine.access$900(CommandLine.java:145)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2141)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2108)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1975)
at picocli.CommandLine.execute(CommandLine.java:1904)
at com.devshawn.kafka.gitops.MainCommand.main(MainCommand.java:69)