Issue #2795 - added code to check for null images.

Former-commit-id: 5546b537cf [formerly 0c7395d423] [formerly 49530206f4 [formerly 64cde69f612f25bf6c4a60db24791e3842b956a9]]
Former-commit-id: 49530206f4
Former-commit-id: facc67e6b5
This commit is contained in:
Lee Venable 2014-02-26 15:50:46 -06:00
parent 91d419662c
commit 35f6f35186

View file

@ -541,6 +541,17 @@ public class NotificationDlg extends CaveSWTDialog implements ITableChange,
id = Activator.imageDescriptorFromPlugin(
"com.raytheon.uf.viz.datadelivery", "icons/dd_new.png");
trayImg2 = id.createImage();
/*
* Check if the images are null.
*/
if (trayImg1 == null) {
System.out.println("*** Tray image 1 is null...");
} else {
System.out
.println("*** Tray image 1 is not null and should have an image...");
}
tray = display.getSystemTray();
createTray();