Skip to content

Commit

Permalink
OSMParsers: don't accept null TagParser
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 30, 2022
1 parent 5a4078a commit 8f5c7b2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public OSMParsers(List<TagParser> wayTagParsers, List<VehicleTagParser> vehicleT
}

public OSMParsers addWayTagParser(TagParser tagParser) {
if (tagParser == null) throw new IllegalArgumentException("TagParser must not be null");
wayTagParsers.add(tagParser);
return this;
}
Expand Down

0 comments on commit 8f5c7b2

Please sign in to comment.