#vulnerable code 
                                @Test
    public void shouldGenerateTheSameValueForTheSameSeed() {
        String javaVersion = System.getProperty("java.specification.version");
        if (javaVersion.startsWith("9") || javaVersion.startsWith("10")) {
            assertThat(aNewLocaleRandomizer(SEED).getRandomValue()).isEqualTo(new Locale("sw", "ke"));
        } else if (javaVersion.startsWith("12")) {
            assertThat(aNewLocaleRandomizer(SEED).getRandomValue()).isEqualTo(new Locale("en", "CK"));
        } else {
            assertThat(aNewLocaleRandomizer(SEED).getRandomValue()).isEqualTo(new Locale("nl", "be"));
        }
    } 
                            #location 4 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Test
    public void shouldGenerateTheSameValueForTheSameSeed() {
        BigDecimal javaVersion = new BigDecimal(System.getProperty("java.specification.version"));
        if (javaVersion.compareTo(new BigDecimal("11")) >= 0) {
            assertThat(aNewLocaleRandomizer(SEED).getRandomValue()).isEqualTo(new Locale("en", "CK"));
        } else if (javaVersion.compareTo(new BigDecimal("9")) >= 0) {
            assertThat(aNewLocaleRandomizer(SEED).getRandomValue()).isEqualTo(new Locale("sw", "ke"));
        } else {
            assertThat(aNewLocaleRandomizer(SEED).getRandomValue()).isEqualTo(new Locale("nl", "be"));
        }
    }