My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 36 attachment: patch-SimpleRowFilter.txt (1.1 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Index: C:/work/jmesa/src/org/jmesa/core/filter/SimpleRowFilter.java
===================================================================
--- C:/work/jmesa/src/org/jmesa/core/filter/SimpleRowFilter.java (revision 1022)
+++ C:/work/jmesa/src/org/jmesa/core/filter/SimpleRowFilter.java (working copy)
@@ -69,13 +69,9 @@

for (Filter filter : filterSet.getFilters()) {
String property = filter.getProperty();
- Object value = PropertyUtils.getProperty(item, property);
-
- if (value != null) {
- MatcherKey key = new MatcherKey(value.getClass(), property);
- FilterMatcher match = registry.getFilterMatcher(key);
- matches.put(filter, match);
- }
+ MatcherKey key = new MatcherKey(PropertyUtils.getPropertyType(item, property).getClass(), property);
+ FilterMatcher match = registry.getFilterMatcher(key);
+ matches.put(filter, match);
}
} catch (Exception e) {
logger.error("Had problems getting the Filter / Match values.", e);
Powered by Google Project Hosting