From 0fe9cb001c7abf3d52a3ce008c2e9f7e678a5e90 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Tue, 27 Sep 2011 09:44:51 +0000 Subject: [PATCH] #7672 Fixed null handling in escaping for HTML. svn changeset:21333/svn branch:6.6 --- .../vaadin/terminal/gwt/server/AbstractApplicationServlet.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java index 5bbfbfbbc2..526e85a8d8 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java @@ -2456,6 +2456,9 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements * @return a safe string to be added inside an html tag */ public static final String safeEscapeForHtml(String unsafe) { + if (null == unsafe) { + return null; + } StringBuilder safe = new StringBuilder(); char[] charArray = unsafe.toCharArray(); for (int i = 0; i < charArray.length; i++) { -- 2.39.5