Skip to content

Commit 21a16a1

Browse files
author
jantje
committed
Cope with none sloeber projects in the workspace
The listener fires Sloeber stuff but that will fail if the project is not a sloeber project.
1 parent 3f6d8ea commit 21a16a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

io.sloeber.core/src/io/sloeber/core/listeners/resourceChangeListener.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ protected IStatus run(IProgressMonitor monitor) {
5252
public void run(IProgressMonitor monitor) throws CoreException {
5353
for (IProject curProject : changedSloeberCfgFiles) {
5454
SloeberProject curSloeberProject = SloeberProject.getSloeberProject(curProject, false);
55-
curSloeberProject.sloeberCfgChanged();
55+
if (curSloeberProject == null) {
56+
// this is not a sloeber project;
57+
//make it one?
58+
}
59+
else{
60+
curSloeberProject.sloeberCfgChanged();
61+
}
5662
}
5763
}
5864
};

0 commit comments

Comments
 (0)