diff options
author | Artur Signell <artur@vaadin.com> | 2015-09-02 20:45:30 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2015-11-03 13:59:28 +0000 |
commit | ffb28784b7e9b612a63edd997c4ecbcc3797cc73 (patch) | |
tree | e80c1392994cd9995d89dbedd23d38091290b44f /client | |
parent | baa8da38adeac92a3acecd9501ecbbafe5815f88 (diff) | |
download | vaadin-framework-ffb28784b7e9b612a63edd997c4ecbcc3797cc73.tar.gz vaadin-framework-ffb28784b7e9b612a63edd997c4ecbcc3797cc73.zip |
Render null header caption as empty (#18553)
Change-Id: Iaeba81c7e40d4be5f16e74fa8bcf8c86c53a7d3d
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 4 |
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)) { |