#fixed code
                                protected void updateMeminfo() {
        long now = System.currentTimeMillis();
        if (now - this.lastUpdate > 100) {
            if (!Psapi.INSTANCE.GetPerformanceInfo(perfInfo, perfInfo.size())) {
                LOG.error("Failed to get Performance Info. Error code: {}", Kernel32.INSTANCE.GetLastError());
                return;
            }
            this.memAvailable = perfInfo.PageSize.longValue() * perfInfo.PhysicalAvailable.longValue();
            this.memTotal = perfInfo.PageSize.longValue() * perfInfo.PhysicalTotal.longValue();
            this.swapTotal = perfInfo.PageSize.longValue()
                    * (perfInfo.CommitLimit.longValue() - perfInfo.PhysicalTotal.longValue());
            this.lastUpdate = now;
        }
    }
#vulnerable code 
                                protected void updateMeminfo() {
        long now = System.currentTimeMillis();
        if (now - this.lastUpdate > 100) {
            if (!Psapi.INSTANCE.GetPerformanceInfo(perfInfo, perfInfo.size())) {
                LOG.error("Failed to get Performance Info. Error code: {}", Kernel32.INSTANCE.GetLastError());
                this.perfInfo = null;
            }
            this.memAvailable = perfInfo.PageSize.longValue() * perfInfo.PhysicalAvailable.longValue();
            this.memTotal = perfInfo.PageSize.longValue() * perfInfo.PhysicalTotal.longValue();
            this.swapTotal = perfInfo.PageSize.longValue()
                    * (perfInfo.CommitLimit.longValue() - perfInfo.PhysicalTotal.longValue());
            this.lastUpdate = now;
        }
    } 
                            #location 8 
                            #vulnerability type NULL_DEREFERENCE