EA-31572 - assert: InlineLocalHandler.invoke
authoranna <Anna.Kozlova@jetbrains.com>
Thu, 19 Jan 2012 20:47:33 +0000 (21:47 +0100)
committeranna <Anna.Kozlova@jetbrains.com>
Thu, 19 Jan 2012 20:47:33 +0000 (21:47 +0100)
java/java-impl/src/com/intellij/refactoring/inline/InlineLocalHandler.java

index 0057655ee02b2192242eab1d9617d05733762e71..27f6694cdf218f8dc88bb82719a766214fe01800 100644 (file)
@@ -105,7 +105,7 @@ public class InlineLocalHandler extends JavaInlineActionHandler {
     });
 
     final PsiCodeBlock containerBlock = PsiTreeUtil.getParentOfType(local, PsiCodeBlock.class);
     });
 
     final PsiCodeBlock containerBlock = PsiTreeUtil.getParentOfType(local, PsiCodeBlock.class);
-    LOG.assertTrue(containerBlock != null);
+    LOG.assertTrue(containerBlock != null, local);
 
     final PsiExpression defToInline = innerClassesWithUsages.isEmpty()
                                       ? getDefToInline(local, refExpr, containerBlock)
 
     final PsiExpression defToInline = innerClassesWithUsages.isEmpty()
                                       ? getDefToInline(local, refExpr, containerBlock)