Skip to content

Commit

Permalink
[map][scale] Fix localization (#14825)
Browse files Browse the repository at this point in the history
The wrong key was used in the `cachedTransformations` map. Instead of the correctyl localized UID from the registry the provided transformation function was used.

Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K authored Apr 17, 2023
1 parent a0d8473 commit f2f0f4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void deactivate() {
if (!cachedTransformations.containsKey(transformation.getUID())) {
importConfiguration(transformation);
}
Properties properties = cachedTransformations.get(function);
Properties properties = cachedTransformations.get(transformation.getUID());
if (properties != null) {
String target = properties.getProperty(source);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static class OrderedProperties extends Properties {
if (!cachedTransformations.containsKey(transformation.getUID())) {
importConfiguration(transformation);
}
Map<@Nullable Range, String> data = cachedTransformations.get(function);
Map<@Nullable Range, String> data = cachedTransformations.get(transformation.getUID());

if (data != null) {
String target;
Expand Down

0 comments on commit f2f0f4b

Please sign in to comment.