Update RenderingEngine.java

If main camera null , it will crash. But it better to say, just so noone will search for error 30 minutes (someone like me)