Try to find out what is causing the NPE