summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/widgets/Grid.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java
index 81d8929ecf..a5a93c19ef 100644
--- a/client/src/com/vaadin/client/widgets/Grid.java
+++ b/client/src/com/vaadin/client/widgets/Grid.java
@@ -4650,12 +4650,10 @@ public class Grid<T> extends ResizeComposite implements
* The header caption for this column
* @return the column itself
*
- * @throws IllegalArgumentException
- * if given caption text is null
*/
public Column<C, T> setHeaderCaption(String caption) {
if (caption == null) {
- throw new IllegalArgumentException("Caption cannot be null.");
+ caption = "";
}
if (!this.headerCaption.equals(caption)) {