getCellType error

Try to post a sample code that produces the issue otherwise maybe you are doing things in the wrong way ?