storm
storm copied to clipboard
[STORM-3380] Use Objects.equals to avoid possible NullPointerException
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 Thanks, looks great. Could you squash to one commit, and we can merge after the 24-hour waiting period?