mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
work around NPE
Not sure if the name being null is ok, but this is likely better code.
This commit is contained in:
parent
fe7e85c93d
commit
2b0dcbbd17
1 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ import android.content.Context;
|
|||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.text.TextUtils;
|
||||
import android.text.format.DateUtils;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
|
@ -74,7 +75,7 @@ public class BTInviteDelegate extends InviteDelegate {
|
|||
pairs = new ArrayList<>();
|
||||
} else {
|
||||
for ( TwoStringPair pair : pairs ) {
|
||||
alreadyHave = pair.str2.equals(devName);
|
||||
alreadyHave = TextUtils.equals(pair.str2, devName);
|
||||
if ( alreadyHave ) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue