testproject-io / java-opensdk

TestProject Java OpenSDK
Apache License 2.0
50 stars 42 forks source link

Avoid NullPointerException when reporting Cucumber step. #82

Closed DavidG8168 closed 3 years ago

DavidG8168 commented 3 years ago

When there is no step error, and the step failed, getting the message from NULL will cause a NullPointerException. Checking if the message is NULL before attempting to get the message, if it is, use "" as the message.

Signed-off-by: david_goichman david.goichman@testproject.io

mstrelex commented 3 years ago

@DavidG8168 Please prepare version-bump PR