mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2026-04-21 06:03:53 +00:00
Added if-query to check whether Label container is not null
This commit is contained in:
parent
8df1b38df5
commit
2b0bc21082
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue