Skip to content

Commit

Permalink
Fix dynamic pickup-filter NPE
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Herrera <[email protected]>
  • Loading branch information
Pablete1234 committed Aug 2, 2024
1 parent 726c9ff commit 9e6198f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/tc/oc/pgm/flag/FlagModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import tc.oc.pgm.api.match.Match;
import tc.oc.pgm.api.match.MatchModule;
import tc.oc.pgm.api.module.exception.ModuleLoadException;
import tc.oc.pgm.filters.FilterMatchModule;
import tc.oc.pgm.filters.FilterModule;
import tc.oc.pgm.flag.post.PostDefinition;
import tc.oc.pgm.goals.GoalMatchModule;
Expand All @@ -37,6 +38,11 @@ public FlagModule(
this.flags = ImmutableList.copyOf(flags);
}

@Override
public Collection<Class<? extends MatchModule>> getWeakDependencies() {
return ImmutableList.of(FilterMatchModule.class);
}

@Override
public Collection<Class<? extends MatchModule>> getSoftDependencies() {
return ImmutableList.of(GoalMatchModule.class);
Expand Down

0 comments on commit 9e6198f

Please sign in to comment.