When I add the Additional Boards Manager URLs to Arduino IDE through File > Preferences, and open Tools > Board > Board Manager, the board manager started to upgrade. Then the “java.lang.NullPointException” Error come out.
I tried in other computer which have not set the Additional Boards Manager URLs, it appeared to be a common problem. So I suppose it is the problem caused by Arduino severer in these days.