Skip to content

Commit

Permalink
Version: Treat missing as 0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kasemir committed Feb 26, 2024
1 parent 7b26ede commit 9eccd48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dbwr/widgets/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Version(final int major, final int minor, final int patch)
*/
public static Version parse(final String version)
{
if (version == null)
if (version == null || version.isBlank())
return new Version(0, 0, 0);

// First try the long format
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ view.jsp?cache=false&display=file:/Path/to/Display+Builder/01_main.bob
<hr>

<div id="versions">
2024-02-26 Version: Treat missing as 0.0.0<br>
2024-01-31 Group widget: Correct inset for style 'None' and fix colors for newly added example.<br>
2023-09-11 LED only displayed values above zero instead of non-zero, incl. negative. Byte monitor layout float calc<br>
2023-08-15 Preserve spaces in labels, text updates<br>
Expand Down

0 comments on commit 9eccd48

Please sign in to comment.