Skip to content

Commit

Permalink
metadata could be null, adding a check (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mujeebul committed Dec 27, 2021
1 parent 60b7c17 commit 86f40d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void deleteByTags(List<String> tags, RecordingConfig config) {
.forEach(it -> {
if (it.toString().endsWith(META_SUFFIX)) {
ScenarioMetadata metadata = retrieveMetadataForFile(it, config.getSerializer());
if (metadata.getTags() != null) {
if (metadata != null && metadata.getTags() != null) {
List<String> tagList = new ArrayList<>(metadata.getTags());
tagList.retainAll(tags);
if (!tagList.isEmpty()) {
Expand Down

0 comments on commit 86f40d9

Please sign in to comment.