Fixed the incorrect text being returned when arrayText is empty in UIText
@@ -680,12 +680,13 @@ public String getText() {
String arrayText = "";
if(linesOfText.length > 0) {
arrayText = String.join("\n", linesOfText);
- }
-
if(text.get() != "") {
return text.get() + "\n" + arrayText;
}
return text.get() + arrayText;
+ } else {
+ return text.get();
+ }
}
/**
