My favorites
▼
|
Sign in
jmesa
Table Rendering API
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
214
attachment: LimitUtils.patch
(835 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: src/org/jmesa/limit/LimitUtils.java
===================================================================
--- src/org/jmesa/limit/LimitUtils.java (revision 505)
+++ src/org/jmesa/limit/LimitUtils.java Fri Sep 04 11:45:48 CEST 2009
@@ -34,12 +34,12 @@
*/
public static String getValue(Object value) {
if (value instanceof Object[]) {
- if (((Object[]) value).length == 1) {
+ if (((Object[]) value).length > 0) {
return String.valueOf(((Object[]) value)[0]);
}
} else if (value instanceof List) {
List<?> valueList = (List<?>) value;
- if (((List<?>) valueList).size() == 1) {
+ if (((List<?>) valueList).size() > 0) {
return String.valueOf(((List<?>) valueList).get(0));
}
}
Powered by
Google Project Hosting