another check for null to avoid NPE
jindent