bd2019us opened a new pull request #2997: [STORM-3380] Use Objects.equals to 
avoid possible NullPointerException
URL: https://github.com/apache/storm/pull/2997
 
 
   Hello,
   I found that if the Map "data" does not have the key "TYPE", the String 
"compType" may cause potential risk of NullPointerException since they are 
immediately used after initialization and there is no null checker. One 
recommended API is Objects.equals(String,String) which can avoid this exception.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to