Skip to content
Permalink
Browse files

[habot] avoid feeding null or empty attributes to the trainer (#141)

Signed-off-by: Yannick Schaus <github@schaus.net>
  • Loading branch information
ghys authored and kaikreuzer committed Nov 19, 2019
1 parent c13c005 commit 6d752a30f9325d3c384e71f2a4424bae4257d687
@@ -141,6 +141,7 @@ public void setLocale(Locale locale) {
}
}

itemAttributes.removeIf(attribute -> attribute.getValue() == null || attribute.getValue().isEmpty());
attributes.put(item, itemAttributes);
}
}

0 comments on commit 6d752a3

Please sign in to comment.
You can’t perform that action at this time.