#fixed code
                                @Test
    public void testGetRecents() {
        AppMsgInfo info = handler.decode();
        Assert.assertEquals("南京abc.xlsx", info.title);
        System.out.println(info);
        WechatMessage m = new WechatMessage();
        m.Content = File2String.read("appmsg-publisher.xml");
        handler = new AppMsgXmlHandler(m);
        info = handler.decode();
        Assert.assertEquals("谷歌开发者", info.appName);
        System.out.println(info);
    }
#vulnerable code 
                                @Test
    public void testGetRecents() {
        AppMsgInfo info = handler.decode();
        Assert.assertEquals("南京abc.xlsx", info.title);
        System.out.println(info);
        
        handler = new AppMsgXmlHandler(
                File2String.read("appmsg-publisher.xml"));
        info = handler.decode();
        Assert.assertEquals("谷歌开发者", info.appName);
        System.out.println(info);
    } 
                            #location 8 
                            #vulnerability type NULL_DEREFERENCE