From f1e3ae0fc979433943960d867352ee7f355247b7 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 16 Feb 2016 17:38:51 +0100 Subject: [PATCH] [ui] no decompilation in exception filter (IDEA-150589) --- .../execution/filters/ExceptionExFilterFactory.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/java/execution/openapi/src/com/intellij/execution/filters/ExceptionExFilterFactory.java b/java/execution/openapi/src/com/intellij/execution/filters/ExceptionExFilterFactory.java index 651bb76c445d..a8c86676cdb9 100644 --- a/java/execution/openapi/src/com/intellij/execution/filters/ExceptionExFilterFactory.java +++ b/java/execution/openapi/src/com/intellij/execution/filters/ExceptionExFilterFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2016 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. @@ -92,9 +92,10 @@ public class ExceptionExFilterFactory implements ExceptionFilterFactory { OpenFileDescriptor descriptor = ((FileHyperlinkInfo)hyperlinkInfo).getDescriptor(); if (descriptor == null) continue; - int offset = descriptor.getOffset(); PsiFile psiFile = worker.getFile(); - if (offset <= 0 || psiFile == null) continue; + if (psiFile == null || psiFile instanceof PsiCompiledFile) continue; + int offset = descriptor.getOffset(); + if (offset <= 0) continue; PsiElement element = psiFile.findElementAt(offset); PsiTryStatement parent = PsiTreeUtil.getParentOfType(element, PsiTryStatement.class, true, PsiClass.class);