Skip to content
Snippets Groups Projects
Commit dfbb4e7b authored by Dongyue Mou's avatar Dongyue Mou
Browse files

fixed the bug, where null pointer exception may occurred by refreshing workspace.

refs 180
parent 882ba8ca
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,19 @@ public class EclipseResourceStorageProvider implements
&& isLoaded(file)) {
unloadContext(file);
} else if (changeKind == IResourceDelta.CHANGED) {
handleChange(file);
if (isLoaded(file)) {
handleChange(file);
} else {
try {
loadContext(file);
} catch (IOException ioex) {
LoggingUtils
.error(ToolingKernelActivator
.getDefault(),
"Had an error during reloading the file!",
ioex);
}
}
}
// Refresh the top-level elements
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment