From 093e192d84756fd716b885e9b4b6f92efc0a682c Mon Sep 17 00:00:00 2001 From: Darkyenus Date: Tue, 13 Dec 2016 20:37:34 +0100 Subject: [PATCH] Fix crash in dispose() --- src/com/darkyen/TimeTrackerWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/darkyen/TimeTrackerWidget.java b/src/com/darkyen/TimeTrackerWidget.java index f82c543..3f7beb7 100644 --- a/src/com/darkyen/TimeTrackerWidget.java +++ b/src/com/darkyen/TimeTrackerWidget.java @@ -298,7 +298,7 @@ private void addVersionTime(long seconds) { @Override public void dispose() { setupAutoStartDocumentListener(false); - Extensions.getArea(project).getExtensionPoint(FileDocumentManagerListener.EP_NAME).unregisterExtension(saveDocumentListener); + Extensions.getArea(null).getExtensionPoint(FileDocumentManagerListener.EP_NAME).unregisterExtension(saveDocumentListener); Toolkit.getDefaultToolkit().removeAWTEventListener(this); setRunning(false); }