mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 22:35:43 +02:00
null pointer check in sample
This commit is contained in:
parent
3ba55d9c46
commit
d919839bae
1 changed files with 5 additions and 3 deletions
|
@ -112,11 +112,13 @@ public class SampleSubSystem extends SubSystem {
|
|||
|
||||
@Override
|
||||
public void uninitializeSubSystem(IProgressMonitor monitor) {
|
||||
_root.setHostSampleObject(null);
|
||||
_root.setContents(null);
|
||||
super.uninitializeSubSystem(monitor);
|
||||
if (_root != null){
|
||||
_root.setHostSampleObject(null);
|
||||
_root.setContents(null);
|
||||
}
|
||||
|
||||
getSampleService().uninitService(monitor);
|
||||
super.uninitializeSubSystem(monitor);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue