fixed NPE in compile from eclipse