#vulnerable code 
                                public static UtxoOutputPo toOutputPojo(UtxoOutput output) {
        UtxoOutputPo po = new UtxoOutputPo();
        po.setTxHash(output.getTxHash().getDigestHex());
        po.setOutIndex(output.getIndex());
        po.setValue(output.getValue());
        po.setLockTime(output.getLockTime());
        po.setAddress(Address.fromHashs(output.getAddress()).getBase58());
        if(null==output.getScript()){
            po.setScript(output.getScript().getBytes());
        }
        po.setStatus((byte) output.getStatus());
        return po;
    } 
                            #location 9 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                public static UtxoOutputPo toOutputPojo(UtxoOutput output) {
        UtxoOutputPo po = new UtxoOutputPo();
        po.setTxHash(output.getTxHash().getDigestHex());
        po.setOutIndex(output.getIndex());
        po.setValue(output.getValue());
        po.setLockTime(output.getLockTime());
        po.setAddress(Address.fromHashs(output.getAddress()).getBase58());
        if(null!=output.getScript()){
            po.setScript(output.getScript().getBytes());
        }
        po.setStatus((byte) output.getStatus());
        return po;
    }