#vulnerable code 
                                private Date getExpiredDateFromToken(String token) {
        Date expiredDate = null;
        try {
            Claims claims = getClaimsFromToken(token);
            expiredDate = claims.getExpiration();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return expiredDate;
    } 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                private Date getExpiredDateFromToken(String token) {
        Claims claims = getClaimsFromToken(token);
        return claims.getExpiration();
    }