1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 16:15:25 +02:00

launchbar: NPE in ModeSelector is group does not have an image

this prevents mode selector from working at all

Change-Id: Iefc80b8a71cc4550e35fedb2dadcc450f256cb63
This commit is contained in:
Alena Laskavaia 2015-06-18 11:19:15 -04:00 committed by Elena Laskavaia
parent d6a022692a
commit 329f20b8c9

View file

@ -84,6 +84,8 @@ public class ModeSelector extends CSelector {
}
if (group != null) {
ImageDescriptor imageDesc = group.getImageDescriptor();
if (imageDesc == null)
return null;
Image image = images.get(imageDesc);
if (image == null) {
image = imageDesc.createImage();