Why I cannot run code NullPointerException

oh, and then why you split that string on “,” and again on " " ?

anyhow you will see when other data arrive,
questionable to use the key == ‘b’ here,
because if it is still available there, you not know how old it is.