#fixed code
                                @Test
    public void testDecode() throws IOException {
        Packet packet = decoder.decodePackets(Unpooled.copiedBuffer("5:::{\"name\":\"woot\"}", CharsetUtil.UTF_8), null);
        Assert.assertEquals(PacketType.EVENT, packet.getType());
        Assert.assertEquals("woot", packet.getName());
    }
#vulnerable code 
                                @Test
    public void testDecode() throws IOException {
        Packet packet = decoder.decodePacket("5:::{\"name\":\"woot\"}", null);
        Assert.assertEquals(PacketType.EVENT, packet.getType());
        Assert.assertEquals("woot", packet.getName());
    } 
                            #location 4 
                            #vulnerability type NULL_DEREFERENCE