Skip to content

Commit

Permalink
Config validation in solve() if someone directly writes the config va…
Browse files Browse the repository at this point in the history
…riables
  • Loading branch information
[email protected] committed Jan 7, 2024
1 parent 59f18f5 commit 7a5c2c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/de/nqueensfaf/Solver.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public abstract class Solver {
public final <T extends Solver> T solve() {
preconditions();

config().validate();

state = Status.INITIALIZING;
if (initCb != null)
initCb.accept(this);
Expand Down

0 comments on commit 7a5c2c9

Please sign in to comment.