You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2018/03/01 14:33:37 UTC
[myfaces-tobago] branch master updated: fix: Array-Index-Exception
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new bdba13a fix: Array-Index-Exception
bdba13a is described below
commit bdba13a83cec2036653f4b503bddbc56e9ebf0ba
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Thu Mar 1 15:33:41 2018 +0100
fix: Array-Index-Exception
TOBAGO-392: example for tc:selectReference is missing
---
.../main/java/org/apache/myfaces/tobago/example/demo/AstroData.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/AstroData.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/AstroData.java
index 52fcfc9..2259d9c 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/AstroData.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/AstroData.java
@@ -52,7 +52,9 @@ public class AstroData {
builder.append(object.getName());
builder.append(", ");
}
- builder.delete(builder.length() - 2, builder.length());
+ if (builder.length() >= 2) {
+ builder.delete(builder.length() - 2, builder.length());
+ }
return builder.toString();
}
}
--
To stop receiving notification emails like this one, please contact
lofwyr@apache.org.