1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-09-03 05:12:42 +02:00

Treat null comment as empty string

Fix #289 (hopefully)
This commit is contained in:
Erik Johansson
2018-06-11 19:01:12 +02:00
parent cb885d1654
commit 17556fffe3

View File

@@ -353,7 +353,12 @@ public class ScaleMeasurement implements Cloneable {
}
public void setComment(String comment) {
this.comment = comment;
if (comment == null) {
this.comment = "";
}
else {
this.comment = comment;
}
}
public float getBMI(float body_height) {