mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2025-12-06 06:52:01 +01:00
Added if-query to check whether Label container is not null
This commit is contained in:
parent
8df1b38df5
commit
2b0bc21082
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue