1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bug 367559: Fixed exception

This commit is contained in:
Andrew Gvozdev 2011-12-28 00:37:50 -05:00
parent d78e6aeffb
commit 336c95dacc

View file

@ -365,7 +365,7 @@ public class MakeContentProvider implements ITreeContentProvider, IMakeTargetLis
if (viewer == null || viewer.getControl() == null || viewer.getControl().isDisposed()) if (viewer == null || viewer.getControl() == null || viewer.getControl().isDisposed())
return; return;
if (CCorePlugin.showSourceRootsAtTopOfProject()) { if (resource instanceof IFolder && CCorePlugin.showSourceRootsAtTopOfProject()) {
// that will refresh equal TargetSourceContainer from the tree // that will refresh equal TargetSourceContainer from the tree
viewer.refresh(new TargetSourceContainer(new CSourceEntry((IFolder) resource, null, 0))); viewer.refresh(new TargetSourceContainer(new CSourceEntry((IFolder) resource, null, 0)));
} }