Fix #427 - Crash on invariant merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
This commit is contained in:
parent
6b9eddde5d
commit
dae7d85c80
|
@ -292,7 +292,9 @@ final class FormatVisitor : ASTVisitor
|
|||
|
||||
override void visit(const Invariant invariant_)
|
||||
{
|
||||
astInformation.doubleNewlineLocations ~= invariant_.blockStatement.endLocation;
|
||||
if (invariant_.blockStatement !is null)
|
||||
astInformation.doubleNewlineLocations ~= invariant_.blockStatement.endLocation;
|
||||
|
||||
invariant_.accept(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue