say NPE here - change to `if (exampleEntity != null && exampleEntity.getApplication() != null)`