#fixed code
                                protected long getBodyLength(Charset charset) {
        ObjectMetaData objectMetaData = FdfsParamMapper.getObjectMap(this.getClass());
        return objectMetaData.getFieldsSendTotalByteSize(this, charset) + getFileSize();
    }
#vulnerable code 
                                protected long getBodyLength(Charset charset) {
        ObjectMataData objectMataData = FdfsParamMapper.getObjectMap(this.getClass());
        return objectMataData.getFieldsSendTotalByteSize(this, charset) + getFileSize();
    } 
                            #location 3 
                            #vulnerability type NULL_DEREFERENCE