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:
parent
d6a022692a
commit
329f20b8c9
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue