zafarkhaja / jsemver

Java implementation of the SemVer Specification
MIT License
429 stars 82 forks source link

Version#toBuilder should not bomb out when preReleaseVersion is absent #68

Closed q3769 closed 5 months ago

q3769 commented 5 months ago

in v0.10.0, the Version#toBuilder method throws exception if the current Verson instance has no preReleaseVersion:

https://github.com/zafarkhaja/jsemver/blob/da52637dcda989536d9cac0b3c812f3a524145c3/src/main/java/com/github/zafarkhaja/semver/Version.java#L1274

that doesn't seem reasonable. is it intentional?

zafarkhaja commented 5 months ago

Definitely not intentional! :) Will roll out the fix within the next 24 hours. Thanks a lot for reporting :+1:

zafarkhaja commented 5 months ago

Fixed in v0.10.2.

P.S. Thanks for reporting the bug, appreciate it!