rpc: check nil funds destination in CloseAccountRequest
This addresses a panic when the funds destination field of the request
is not populated.
@@ -824,6 +824,9 @@ func (s *rpcServer) CloseAccount(ctx context.Context,
}
feeExpr = account.OutputsWithImplicitFee(outputs)
+
+ case nil:
+ return nil, errors.New("a funds destination must be specified")
}
dbOrders, err := s.server.db.GetOrders()
