Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
heshanpadmasiri committed Aug 23, 2024
1 parent 87aa746 commit 96464fa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private synchronized SemType semTypeInner() {
defn = od;
ObjectQualifiers qualifiers = getObjectQualifiers();
List<Member> members = new ArrayList<>();
Set<String> seen = new HashSet<>(fields.size() + methodTypes.length);
Set<String> seen = new HashSet<>();
for (Entry<String, Field> entry : fields.entrySet()) {
String name = entry.getKey();
if (skipField(seen, name)) {
Expand Down Expand Up @@ -424,6 +424,9 @@ public void resetSemType() {
}

protected Collection<MethodData> allMethods() {
if (methodTypes == null) {
return List.of();
}
return Arrays.stream(methodTypes)
.map(method -> MethodData.fromMethod(mutableSemTypeDependencyManager, this, method)).toList();
}
Expand Down

0 comments on commit 96464fa

Please sign in to comment.