mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-09 20:58:05 -05:00
From coverity: trayItem.getImage may return null
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2259 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
3a56ffbe61
commit
ba7e4cc65b
@ -78,7 +78,8 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
|
||||
isActive = true;
|
||||
display.syncExec(new Runnable() {
|
||||
public void run() {
|
||||
if (trayItem.getImage().equals(image)) {
|
||||
Image currentImage = trayItem.getImage();
|
||||
if (currentImage != null && currentImage.equals(image)) {
|
||||
trayItem.setImage(image2);
|
||||
} else {
|
||||
trayItem.setImage(image);
|
||||
|
Loading…
Reference in New Issue
Block a user