deal with null getMessage