View Single Post
Old 03-11-2009, 02:29 PM   #144
elinares
Xtreme Quijote
elinares doesn't litterelinares doesn't litterelinares doesn't litter
 
elinares's Avatar
 
Posts: 101
Karma: 208
Join Date: Sep 2008
Location: La Mancha, Spain
Device: Sony PRS-505
New Version 0.9.196

Quote:
Originally Posted by tlc View Post
I did some debugging last night. Line 108 in StyleItem.java:


getValueAt returns 0; toHexString returns "0"; substring throws an exception. I changed it to check for length < 2 before doing substring and the conversion completed, but I don't know if 0 valid and this is the right fix.


Also, when I tried to convert to RTF, I got other errors, which I fixed by changing Book#getRTF to guard against null author & title like it already did for null bookID and the conversion completed.
Great catch! I've commited these changes and others.
New version 0.9.196 ready to download.
@tlc: Thanks
elinares is offline   Reply With Quote