Skip to content

Commit

Permalink
Fix crash in dispose()
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkyenus committed Dec 13, 2016
1 parent 5681a49 commit 093e192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/darkyen/TimeTrackerWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 093e192

Please sign in to comment.