Skip to content

Commit

Permalink
Don't read properties from non-applicable formats
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Sep 20, 2023
1 parent b6d2a51 commit b77f15f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ private static void read(ColumnFileReader reader, MappingVisitor visitor) throws
StandardProperty property = StandardProperties.getByName(key);

if (property != null) {
if (!property.isApplicableTo(format)) continue; // How did it get there?
key = property.getId();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ private static void read(ColumnFileReader reader, MappingVisitor visitor) throws
StandardProperty property = StandardProperties.getByName(key);

if (property != null) {
if (!property.isApplicableTo(format)) continue; // How did it get there?
key = property.getId();

if (property == StandardProperties.ESCAPED_NAMES) {
Expand Down

0 comments on commit b77f15f

Please sign in to comment.