Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndrew Gvozdev2011-12-28 00:37:50 -0500
committerAndrew Gvozdev2011-12-28 00:37:50 -0500
commit336c95daccf6e1f2c6b75610cdf7983d15de10e1 (patch)
tree5269389a6ede1b0f34a9353c93ec760cc83be3c9 /build
parentd78e6aeffb17eb233d9ea2904ceaae0be2c79456 (diff)
downloadorg.eclipse.cdt-336c95daccf6e1f2c6b75610cdf7983d15de10e1.tar.gz
org.eclipse.cdt-336c95daccf6e1f2c6b75610cdf7983d15de10e1.tar.xz
org.eclipse.cdt-336c95daccf6e1f2c6b75610cdf7983d15de10e1.zip
bug 367559: Fixed exception
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java
index 1369e186c1..b1b4eeb765 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/MakeContentProvider.java
@@ -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)));
}

Back to the top