mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-09 12:48:02 -05:00
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
This commit is contained in:
parent
31377bfb02
commit
248efafa1d
@ -69,7 +69,8 @@ public class FrameGatewayTray implements DavGatewayTrayInterface {
|
|||||||
isActive = true;
|
isActive = true;
|
||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
if (mainFrame.getIconImage().equals(image)) {
|
Image currentImage = mainFrame.getIconImage();
|
||||||
|
if (currentImage != null && currentImage.equals(image)) {
|
||||||
mainFrame.setIconImage(image2);
|
mainFrame.setIconImage(image2);
|
||||||
} else {
|
} else {
|
||||||
mainFrame.setIconImage(image);
|
mainFrame.setIconImage(image);
|
||||||
|
Loading…
Reference in New Issue
Block a user