refactor raiseException
add null pointer
cstring