Skip to content

Commit ec9f680

Browse files
committed
fixed bug in GetParameters throwing a NRE when there is no parameter for the specified member.
1 parent 7652f05 commit ec9f680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RetailCoder.VBE/Refactorings/ImplementInterface/ImplementInterfaceRefactoring.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private List<Parameter> GetParameters(Declaration member)
187187
})
188188
.ToList();
189189

190-
if (member.DeclarationType == DeclarationType.PropertyGet)
190+
if (member.DeclarationType == DeclarationType.PropertyGet && parameters.Any())
191191
{
192192
parameters.Remove(parameters.Last());
193193
}

0 commit comments

Comments
 (0)