Empty provider will cause exception