mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
Bug 344842 - [disassembly] NPE when shutting down the workbench
This commit is contained in:
parent
f7a9c21d2e
commit
b956965539
1 changed files with 4 additions and 0 deletions
|
@ -738,6 +738,7 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
|
|||
*/
|
||||
@Override
|
||||
public void dispose() {
|
||||
fUpdateCount++;
|
||||
IWorkbenchPartSite site = getSite();
|
||||
site.setSelectionProvider(null);
|
||||
site.getPage().removePartListener(fPartListener);
|
||||
|
@ -1890,6 +1891,9 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
|
|||
}
|
||||
|
||||
private void startUpdate(final Runnable update) {
|
||||
if (fViewer == null)
|
||||
return;
|
||||
|
||||
final int updateCount = fUpdateCount;
|
||||
final SafeRunnable safeUpdate = new SafeRunnable() {
|
||||
public void run() {
|
||||
|
|
Loading…
Add table
Reference in a new issue