Skip to content

Commit

Permalink
fix: java.lang.AssertionError: No constructors are supposed to reach
Browse files Browse the repository at this point in the history
this point

Fixes #1145

Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr authored and fbricon committed Sep 7, 2023
1 parent 22b94b0 commit 461101b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ private void populateConfigObject(PsiClass configMappingType, String prefixStr,
for (PsiElement child : elements) {
if (child instanceof PsiMethod) {
PsiMethod method = (PsiMethod) child;
assert method.getReturnType() != null : "No constructors are supposed to reach this point";
if (method.getModifierList().hasExplicitModifier(PsiModifier.DEFAULT) || method.hasParameters()
if (method.getReturnType() == null || method.getModifierList().hasExplicitModifier(PsiModifier.DEFAULT) || method.hasParameters()
|| PsiType.VOID.equals(method.getReturnType())) {
continue;
}
Expand Down

0 comments on commit 461101b

Please sign in to comment.