NullPointerException bug fixed

when get a key it will throw NullPointerException...