From bdf7ef53500b3662221b58ecf5bc5057e796efc1 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 23 Dec 2014 14:30:11 +0300 Subject: [PATCH] EA-55388 - assert: ComponentManagerImpl.getComponent --- .../codeInsight/hint/InspectionDescriptionLinkHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hint/InspectionDescriptionLinkHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/hint/InspectionDescriptionLinkHandler.java index 102c8807b2de..ac1d462ccdcf 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hint/InspectionDescriptionLinkHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/hint/InspectionDescriptionLinkHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2011 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ public class InspectionDescriptionLinkHandler extends TooltipLinkHandler { LOG.error(editor); return null; } - + if (project.isDisposed()) return null; final PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument()); if (file == null) { return null;