Re: null BLOB and byte array

2005-05-23 Thread Paul Barry
If I change these methods in com.ibatis.sqlmap.engine.type.BlobTypeHandlerCallback, it works fine: public Object getResult(ResultGetter getter) throws SQLException { Blob blob = getter.getBlob(); if(blob != null) { int size = (int) blob.length(); return blob.getBy

Re: null BLOB and byte array

2005-05-23 Thread Nathan Maves
Paul, btye[] are objects so having them be null is just fine. byte[] test = null; I am not sure if there is a test case written for this yet. I will look into it. Nathan On May 23, 2005, at 8:35 AM, Paul Barry wrote: I have a BLOB column in my database that can be null. I want to map it t

null BLOB and byte array

2005-05-23 Thread Paul Barry
I have a BLOB column in my database that can be null. I want to map it to a byte[], but when I do, I get a NullPointerException. Anyway have a good way of dealing with this?