mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-31069 - assert: RefactoringUtil.getChainedConstructor
This commit is contained in:
@@ -901,7 +901,7 @@ public class RefactoringUtil {
|
||||
@Nullable
|
||||
public static PsiMethod getChainedConstructor(PsiMethod constructor) {
|
||||
final PsiCodeBlock constructorBody = constructor.getBody();
|
||||
LOG.assertTrue(constructorBody != null);
|
||||
if (constructorBody == null) return null;
|
||||
final PsiStatement[] statements = constructorBody.getStatements();
|
||||
if (statements.length == 1 && statements[0] instanceof PsiExpressionStatement) {
|
||||
final PsiExpression expression = ((PsiExpressionStatement)statements[0]).getExpression();
|
||||
|
||||
Reference in New Issue
Block a user