Merge "CopyableLabel: Avoid creating Flash movie for empty string"

This commit is contained in:
Edwin Kempin 2013-08-22 08:57:47 +00:00 committed by Gerrit Code Review
commit 5b89426048

View File

@ -130,7 +130,7 @@ public class CopyableLabel extends Composite implements HasText {
}
private void embedMovie() {
if (flashEnabled && UserAgent.hasFlash) {
if (flashEnabled && UserAgent.hasFlash && text.length() > 0) {
final String flashVars = "text=" + URL.encodeQueryString(getText());
final SafeHtmlBuilder h = new SafeHtmlBuilder();