Skip to content

Commit

Permalink
Fix NPE in analysis option parsing and condition checking (#134)
Browse files Browse the repository at this point in the history
fix #133

Signed-off-by: cs-cat <118669451+cs-cat@users.noreply.github.com>
  • Loading branch information
cs-cat authored Dec 15, 2024
1 parent 9eb966e commit cf552a6
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)).equals(v)) {
continue outer;
}
}
Expand Down

0 comments on commit cf552a6

Please sign in to comment.