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

This commit is contained in:
Olga Miller 2018-10-23 19:02:13 +02:00
parent 8df1b38df5
commit 2b0bc21082

View file

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