Bug 24381

Summary: ClassCastException in HSSF Cell - getCellFormula()
Product: POI Reporter: Christian Nutz <cnutz>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 2.0-pre3   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Christian Nutz 2003-11-04 12:01:48 UTC
Exception inside getCellFormula() occours when try to do this: 

cell.setCellFormula(row.getCell().getCellFormula());

(cell, row and row.getCell() are not null !)

This happens also in new POI 2.0 RC1
Comment 1 Avik Sengupta 2003-11-04 17:34:13 UTC
Its impossible to debug, unless the code is compilable, you attach the workbook
on which the error occurs, and the actual exception. How is anybody supposed to
figure out what is wrong if even the Stacktrace is missing?
Comment 2 Avik Sengupta 2005-05-20 11:51:11 UTC
I'm sorry, but this is impossible to debug. I can see lots of cases where 

cell.setCellFormula(row.getCell().getCellFormula());

works perfectly. You need to provide your case where it doesnt work.