From coverity: check null image in FrameGatewayTray

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2276 3d1905a2-6b24-0410-a738-b14d5a86fcbd
master
mguessan 9 years ago
parent 31377bfb02
commit 248efafa1d

@ -69,7 +69,8 @@ public class FrameGatewayTray implements DavGatewayTrayInterface {
isActive = true;
SwingUtilities.invokeLater(new Runnable() {
public void run() {
if (mainFrame.getIconImage().equals(image)) {
Image currentImage = mainFrame.getIconImage();
if (currentImage != null && currentImage.equals(image)) {
mainFrame.setIconImage(image2);
} else {
mainFrame.setIconImage(image);

Loading…
Cancel
Save