eclipse / hawkbit

Eclipse hawkBit™
https://projects.eclipse.org/projects/iot.hawkbit
Eclipse Public License 2.0
444 stars 186 forks source link

prevent npe during multipart exception handling #1721

Closed mwiesenbauer closed 1 month ago

hawkbit-bot commented 2 months ago

Can one of the admins verify this patch?

avgustinmm commented 2 months ago

Adding a handling of null is OK but the code changes the behavior. Up until now, logging has occurred only when the message was empty - now - when not empty. So, it shall be checked carefully for the exact targeted behavior - if it shall be ObjectUtils.isEmpty or StringUtils.hasLength

mwiesenbauer commented 2 months ago

You are right. Changing the behaviour was not my intention.