Skip to content

Commit

Permalink
fix NPE when parsing null options used by conditions (fixes pascal-la…
Browse files Browse the repository at this point in the history
…b#133)

Signed-off-by: cs-cat <118669451+cs-cat@users.noreply.github.com>
  • Loading branch information
cs-cat committed Dec 14, 2024
1 parent 9eb966e commit a1ddac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/pascal/taie/config/Configs.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static boolean satisfyConditions(String conditions, AnalysisOptions options) {
// Check each individual value, if one match,
// then this condition can be satisfied.
for (String v : value.split("\\|")) {
if (options.get(key).toString().equals(v)) {
if (Objects.toString(options.get(key), "null").equals(v)) {
continue outer;
}
}
Expand Down

0 comments on commit a1ddac2

Please sign in to comment.