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:
parent
d78e6aeffb
commit
336c95dacc
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ public class MakeContentProvider implements ITreeContentProvider, IMakeTargetLis
|
|||
if (viewer == null || viewer.getControl() == null || viewer.getControl().isDisposed())
|
||||
return;
|
||||
|
||||
if (CCorePlugin.showSourceRootsAtTopOfProject()) {
|
||||
if (resource instanceof IFolder && CCorePlugin.showSourceRootsAtTopOfProject()) {
|
||||
// that will refresh equal TargetSourceContainer from the tree
|
||||
viewer.refresh(new TargetSourceContainer(new CSourceEntry((IFolder) resource, null, 0)));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue