storm icon indicating copy to clipboard operation
storm copied to clipboard

[STORM-3380] Use Objects.equals to avoid possible NullPointerException

Open bd2019us opened this issue 5 years ago • 1 comments

Hello, I found that if the Map "data" does not have the key "TYPE", the String "compType" may cause potential risk of NullPointerException since it is immediately used after initialization and there is no null checker. One recommended API is Objects.equals(String,String) which can avoid this exception.

bd2019us avatar Apr 14 '19 02:04 bd2019us

@bd2019us Thanks, looks great. Could you squash to one commit, and we can merge after the 24-hour waiting period?

srdo avatar Apr 14 '19 09:04 srdo