Added if-query to check whether Label container is not null

pull/3/head
Olga Miller 2018-10-23 19:02:13 +02:00
rodzic 8df1b38df5
commit 2b0bc21082
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -115,7 +115,7 @@ public class LabelCollection {
}
public void editLabelEnd(Label label) {
if (label != null) { // not canceled
if (mEditLabel != null && label != null) {
if ("".equals(label.getText().trim())) {
if (mLabels.contains(mEditLabel))
mLabels.remove(mEditLabel);