check for missing bg direction
This commit is contained in:
parent
42b42a90eb
commit
5c5c4243bc
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@ public class BgReading implements DataPointWithLabelInterface {
|
||||||
|
|
||||||
public String directionToSymbol() {
|
public String directionToSymbol() {
|
||||||
String symbol = "";
|
String symbol = "";
|
||||||
if (direction.compareTo("DoubleDown") == 0) {
|
if (direction == null) {
|
||||||
|
symbol = "??";
|
||||||
|
} else if (direction.compareTo("DoubleDown") == 0) {
|
||||||
symbol = "\u21ca";
|
symbol = "\u21ca";
|
||||||
} else if (direction.compareTo("SingleDown") == 0) {
|
} else if (direction.compareTo("SingleDown") == 0) {
|
||||||
symbol = "\u2193";
|
symbol = "\u2193";
|
||||||
|
|
Loading…
Reference in a new issue