#vulnerable code 
                                @BeforeClass
    public static void setUpClass() {
        application = new Application();
        client = XmemcachedFactory.create(application.getPippoSettings());
    } 
                            #location 4 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @BeforeClass
    public static void setUpClass() throws IOException {
        MemcachedStarter runtime = MemcachedStarter.getDefaultInstance();
        memcachedExe = runtime.prepare(
                new MemcachedConfig(Version.Main.PRODUCTION, PORT));
        memcached = memcachedExe.start();
        client = new XMemcachedClient(new InetSocketAddress(HOST, PORT));
    }