workspace
workspace copied to clipboard
IsSpaceAdminMiddleware::afterException() must not return NULL
Otherwise we get
TypeError: OC\AppFramework\Middleware\MiddlewareDispatcher::afterException(): Return value must be of type OCP\AppFramework\Http\Response, null returned
FIX is here https://github.com/sergeng/workspace/commit/bac98d082058d25a763545c87f356d297e981184
Hi @donquixote
I had already fixed this problem here : https://github.com/arawa/workspace/blob/a2061d043dfd19082cedc7cd4b59669e6d81e381/lib/Middleware/IsSpaceAdminMiddleware.php#L64
I return a JSONResponse with an empty array.