To me it seems like your StokesSolver does not return anything.
StokesSolver
It should return the solution w.
w
Please follow the guidelines about posting a minimal code example: