From 5fd5ee850626bad85bb9691c7d09c9bf4631f129 Mon Sep 17 00:00:00 2001 From: mguessan Date: Sun, 3 Apr 2011 13:14:29 +0000 Subject: [PATCH] OSX: Avoid sending empty message to Growl git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1655 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/ui/tray/OSXAwtGatewayTray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/ui/tray/OSXAwtGatewayTray.java b/src/java/davmail/ui/tray/OSXAwtGatewayTray.java index 5b58c625..9eff9c09 100644 --- a/src/java/davmail/ui/tray/OSXAwtGatewayTray.java +++ b/src/java/davmail/ui/tray/OSXAwtGatewayTray.java @@ -105,7 +105,7 @@ public class OSXAwtGatewayTray extends AwtGatewayTray { icon = UIManager.getIcon("OptionPane.errorIcon"); } - if (icon != null && message != null) { + if (icon != null && message != null && message.length() > 0) { try { String title = BundleMessage.format("UI_DAVMAIL_GATEWAY"); Growl growl = GrowlUtils.getGrowlInstance("DavMail");