#fixed code
                                public FileStat allocateStat() {
        if (freebsdVersion >= 12) {
            return new FreeBSDFileStat12(this);
        } else {
            return new FreeBSDFileStat(this);
        }
    }
#vulnerable code 
                                public FileStat allocateStat() {
        if (System.getProperty("os.version").compareTo("12.0") > 0) {
            return new FreeBSDFileStat12(this);
        } else {
            return new FreeBSDFileStat(this);
        }
    } 
                            #location 2 
                            #vulnerability type NULL_DEREFERENCE