Added a null check
@@ -115,6 +115,7 @@ public class DesktopSetup {
// Set the app icon
if (taskBar.isSupported(Taskbar.Feature.ICON_IMAGE)) {
final Image mzmineIcon = MZmineCore.getDesktop().getMZmineIcon();
+ if (mzmineIcon != null)
taskBar.setIconImage(mzmineIcon);
}
